WordPress.org

Ready to get started?Download WordPress

Forums

h1 tag, can I change it to be different for different pages? (7 posts)

  1. ruch1v
    Member
    Posted 4 years ago #

    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

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

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

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

    to:

    <h1 class="PostHeaderIcon-wrapper">
    [ ... ]
    </h1>
  3. ruch1v
    Member
    Posted 4 years ago #

    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?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

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

  5. ruch1v
    Member
    Posted 4 years ago #

    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

  6. esmi
    Theme Diva & Forum Moderator
    Posted 4 years ago #

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

  7. ruch1v
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic