Tagged: duplicate h1, headings
Hi,
Enfold creates duplicate H1-tags. One is the one you write yourself, and the other seems to be auto-generated. This issue has come up before and has been answered: (https://kriesi.at/support/topic/duplicate-h1-tags-in-posts/#post-1116054)
The OP in the previous thread is asked to remove the code line
$echo title;
Which seems to be a working sollution. But it appears twice in encludes -> Loop-index.php
First one appears in line 314 and looks like this:
if ( in_array( $blog_style, array( 'bloglist-compact', 'bloglist-excerpt' ) ) )
{
echo $title;
}
else...
The other appears later in the code, at line 371 and looks like this:
echo $title;
if( $blog_style !== 'bloglist-compact' )
{
echo "<span class='post-meta-infos'>";
I’m including surrounding code for reference.
Do I remove one of them or both?
Kind regards,
David
Hey wock_legacy,
Thank you for the inquiry.
Only one title will render in the post based on the selected blog style. Where can we see an example of the duplicated title? You might be referring to the default title container, which can be toggled in the Enfold > Header > Header Title and Breadcrumbs settings.
Best regards,
Ismael