Some our SEO tools are telling us that we have duplicate H1 tags on our posts. When I view the source of a random page, it looks like its adding:
<h1 class=’post-title entry-title’ > Post Title <span class=’post-format-icon minor-meta’></span> </h1>
How do I remove this so that the only H1 title is the one we add to the post?
I have already tried https://kriesi.at/support/topic/duplicate-h1-tags-2/ with no luck.
Hey dedmund,
Could you please post a link of one of your posts where we can see the issue?
Best regards,
Yigit
Hi,
Please install a child theme – kriesi.at/documentation/enfold/using-a-child-theme/ and copy enfold/includes/helper-post-format.php file to your child theme inside /includes/ folder and find following lines (there will be two instances)
$heading = is_singular() ? "h1" : "h2";
and change it to
$heading = is_singular() ? "h2" : "h2";
Best regards,
Yigit
Thanks Yigit,
So we installed the theme, it doesn’t look it has the /includes/ folder. Should I copy the entire /includes/ folder and sub-content/files from the parent theme to the child theme first?
Hey!
No, you can simply create a new folder called “includes” and place the file inside that folder
Best regards,
Yigit
That did it… thanks!
Hi,
You are welcome!
For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
For any other questions or issues, feel free to start new threads under Enfold sub forum and we will gladly try to help you :)
Best regards,
Yigit