Tagged: , , , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9682

    I’ve got a question about changing H1 to h2:

    For SEO it’s really best just to have one h1 and different h2. In Shoutbox there are multiple h1 at the frontpage and at the Blog-Pages.

    It best should be:

    Frontpage: Best would be, if the Header is h1 and all the Headlines are h2.

    Blog: Best would be, if the Header is H2 and the Headline is h1.

    Could you please help me doing so?

    Thanks a lot by now

    Greetz

    Job

    #65558

    Hey,

    open up includes/loop-index.php and replace:

    <h1 class='post-title'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </h1>

    with:

    <h2 class='post-title'>
    <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avia_framework')?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </h2>

    #65559

    Thanks Dude!

    That works for the frontpage. But only under the “Featured Image Slider”. Could you please tell me how to change the slider to h2, too?

    And the second Question is still about the Post-Pages:

    There are two H1. I would like to change the Header to h2 only on Posts. It should stay H1 at the frontpage and change to h2 on single pages.

    Thanks a lot

    Job

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

The topic ‘Changing h1 to h2’ is closed to new replies.