Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29260

    I found that there is a second H1 text on my blog posts. left from the breadcrumb.

    In that particular example its “Blog – Die letzten Neuigkeiten” (Blog – The latest news..)

    That is very bad for SEO. There should be only one H1 header and that should be the blog post title.

    The text “Blog – The latest news” is not relevant for my site, and should not have a Hx tag at all.

    #140198

    Hi,

    Edit single.php, find this code:

    if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('title' => $title, 'link' => $t_link, 'subtitle' => $t_sub));

    Replace it with:

    if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('title' => $title, 'link' => $t_link, 'subtitle' => $t_sub, 'heading' => 'h2'));

    The “Blog” title will change to h2.

    Regards,

    Ismael

    #140199

    a not relevant text should not have a H at all.

    H tags are not for design, they are sematic tags.

    i would highly suggest to change that in the next update

    #140200

    Hi,

    Then you can change it to something like this:

    if( get_post_meta(get_the_ID(), 'header', true) != 'no') echo avia_title(array('title' => $title, 'link' => $t_link, 'subtitle' => $t_sub, 'heading' => 'strong'));

    Regards,

    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Two H1 titles on blog posts’ is closed to new replies.