• Hello there,

    I am facing an SEO issue, and I will be grateful if you can help me ??

    Simply said : my wordpress template has <h1> as the tag for the title of blog notes, and that’s just perfect. The code, simply, in single.php, is :

    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>  <?php edit_post_link('<img src="'.get_bloginfo(template_directory).'/images/pencil.png" alt="Edit Link" title="Edit"/>','<span class="editlink">','</span>'); ?></h1>

    However, the drawback is that the root of my blog, the home page, has no <h1>. And that’s bad for SEO, since most of the links to my site point to the root of it.

    Please, if you know it, how could I make a chosen text be <h1> without having it conflict with the blog titles when this is a blog note that is opened ?

    I can’t edit header.php with a descriptive <h1> line, it would work for the site’s root but when a blog-note-page would be open there would be 2 h1 tags (and that is evil regarding SEO).

    There must be some php magical code or some special theme file arrangement… but I don’t see how to achieve that…

    Thanks a lot to whoever has a suggestion ! ??

    Sabin

  • The topic ‘h1 everywhere… except on home page !?!’ is closed to new replies.