zimbrul
Member
Posted 11 months ago #
Hi guys,
My problem is this: I've got a nice theme but the title tags are a little bit confusing the recommended SEO rules.
I've got Site Title as H1 across all my site (including single post pages). On my single post page I've got 2 H1's which is not good.
How can I change to have something like that:
Front page: H1=Site Title and h2-Article titles on front page
Single Post: H1=Post Title and h2=other headings I choose in the article ?
I've seen some posts here in Forum but not quite related to this problem. Can you guide me to a nice tutorial about how to change the title tags as above?
Thanks
Look in your theme's single.php to change the headings for single posts.
zimbrul
Member
Posted 11 months ago #
What theme are you using (link please)?
zimbrul
Member
Posted 11 months ago #
The link is here
http://goo.gl/bIw8E
Thanks for help. I'd like to keep the theme if is possible as it's suitable for the type of site I'm going to design.
in single.php, page.php this creates the Post title:
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
in functions.php this is what creates your Site titles:
echo '<h1><a id="logo" href="'. get_option('home') .'/">';
if ($type == 'Image' && $image) {
echo '<img src="'. $image .'" class="header_image" />';
} else {
bloginfo('name');
}
echo '</a></h1>';
Change the headings as you want.
zimbrul
Member
Posted 11 months ago #
You're welcome. Glad you got it solved.
zimbrul
Member
Posted 11 months ago #
Didn't get it solved because I don't know what to change with what but I am under the impression you are not going to give me the solution :)).
Ok I will be more clear. What do you want precisely.
Front page: H1=Site Title and h2=Article titles
Single Post: ??? = Site title and H1=Article titles
zimbrul
Member
Posted 11 months ago #
Front page: H1=Site Title and h2=Article titles
Single post: H1-Article Title and h2-headings I choose to declare h2
cheers :-)