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
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
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 :(
Hi!
Please try to copy the whole avia_title function on the child theme’s functions.php.
Cheers!
Ismael
yep, that worked :) thx