Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #177219

    Hi there,

    where can I remove or change the double h1 tag in blog posts?

    <h1 class="main-title entry-title">
       <a itemprop="headline" title="Permanenter Link zu: Blog" rel="bookmark" href="http://www....de/blog/">Blog</a>
    </h1>

    The h1 tag should only occur once on each page… (for SEO issues).

    Thx & regards

    #177380

    Hi bivvo!

    You can edit functions-enfold.php, find this code:

    'html' => "<div class='{class} title_container'><div class='container'><{heading} class='main-title entry-title'>{title}</{heading}>{additions}</div></div>",

    Replace the {heading} part with h2, h3 or anything you want.

    'html' => "<div class='{class} title_container'><div class='container'><h2 class='main-title entry-title'>{title}</h2>{additions}</div></div>",

    Cheers!
    Ismael

    #177581

    Thx Ismael,

    I only changed the following line:
    'heading' => 'h2'
    (h1 to h2)

    … and finally works :) But did not work in child theme – had to change it in the them itself :(

    #177849

    Hi!

    Please try to copy the whole avia_title function on the child theme’s functions.php.

    Cheers!
    Ismael

    #178409

    yep, that worked :) thx

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Where to change the "double" h1 tag in blog posts?’ is closed to new replies.