Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Viewing 7 posts - 1 through 7 (of 7 total)

H1 tags

Home Forums Misc. General Forums H1 tags

  • #12041

    matthewshattock

    subscriber

    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

    Towfiq I.

    administrator

    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

    matthewshattock

    subscriber

    Ok great.

    How do I make sure the same thing applies for each page also?

    Thanks

    #14961

    Towfiq I.

    administrator

    do the same thing in page.php file also.

    #14962

    matthewshattock

    subscriber

    and the same for index.php too?

    #14963

    Towfiq I.

    administrator

    no, not for the index.php..it will mess up your seo status. Just the single.php file and page.php file.

    #14964

    matthewshattock

    subscriber

    Ok I see. Thanks again for all your help 🙂