Theme Support Forum
Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums
-
#12041
On October 15, 2011 at 2:29 pm
Hi, after analysing my site it appears there are no H1 tags present even though I have All in one SEO installed.
Is there a way to make sure the title for each individual page and post is used for H1? Is it just a questions of changing some code in the header.php and single.php?
Thanks
#14959
On October 15, 2011 at 2:55 pm
Go to Appearance> Editor and select “single.php” from right and find this line:
<h2 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h2>
and replce it with:
<h1 class="postitle"><a href="<?php the_permalink();?>"><?php the_title(); ?></a></h1>
#14960
On October 15, 2011 at 3:55 pm
Ok great.
How do I make sure the same thing applies for each page also?
Thanks
#14961
On October 15, 2011 at 5:59 pm
do the same thing in page.php file also.
#14962
On October 15, 2011 at 6:10 pm
and the same for index.php too?
#14963
On October 15, 2011 at 6:11 pm
no, not for the index.php..it will mess up your seo status. Just the single.php file and page.php file.
#14964
On October 15, 2011 at 6:12 pm
Ok I see. Thanks again for all your help 🙂
Hello! this is Towfiq, a passionate web developer from Bangladesh, building website templates for almost 4 years and sharing them with the world. Most of my designing/ programming skills are self taught. Providing free Wordpress themes to wordpress enthusiasts is another one of my passions.
When I am not building templates, I listen to music, read books, paint and travel.
x