Support » Fixing WordPress » h1 tag, can I change it to be different for different pages?

  • ruch1v

    (@ruch1v)


    Hi guys

    for seo purposes, I am wanting my h1 tag to be different on different pages, so for example the keyword I am going after on http://trainingdogobedience.com/stop-dog-biting is ‘stop dog biting’ and http://trainingdogobedience.com/stop-dog-whining/ is ‘stop dog whining’, but on both of the pages the h1 tag is coming up as ‘dog obedience training as that’s what is in my banner, I always thought that a page’s h1 tag was the title.

    Is there any way I can have a different h1 tag for each individual page?

    thanks in advance for your help

    Ruchi

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi

    (@esmi)

    Forum Moderator

    You would need to edit your theme’s template files and change:

    <h2 class="PostHeaderIcon-wrapper">
    [ ... ]
    </h2>

    to:

    <h1 class="PostHeaderIcon-wrapper">
    [ ... ]
    </h1>
    ruch1v

    (@ruch1v)

    Thanks Esmi, I just did that, but it didn’t make any difference to my h1 tag according to the SEO software I’m using, any ideas?

    esmi

    (@esmi)

    Forum Moderator

    What template files did you edit? I can’t see any change in your Home page (which uses index.php).

    ruch1v

    (@ruch1v)

    Hi Esmi,

    I had edited the wrong thing, I had done the archive pages (i’m a HTML dunce), just edited it in ‘index.php’ but still no luck…

    thanks for your help

    Ruchi

    esmi

    (@esmi)

    Forum Moderator

    The post headings on your Home page are still using H2.

    ruch1v

    (@ruch1v)

    This is what I have in index.php

    [Mod Note: Chunk of code removed. If you want to post large blocks of code, please use a pastebin.]

    there is no part that is h2

    thanks again for your help

    Ruchi

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘h1 tag, can I change it to be different for different pages?’ is closed to new replies.