June 24, 2019 at 1:50 pm #1112923
I just noticed that all of my blog posts have duplicate h1 tags. In addition to standard h1 tag that I added by myself to titles
<h1> title </h1>the theme adds this one automatically:
<h1 class=’post-title entry-title’ > Post Title <span class=’post-format-icon minor-meta’></span> </h1>
The same issue was already discussed in this thread, but I tried the offered solution and it didn’t work for me (I checked after clearing the cache, cookies and so on).
Thanks in advance for your help!
ArtemJune 25, 2019 at 4:18 pm #1113272
Could you please attach some screenshots of the issue?
VictoriaJune 25, 2019 at 4:38 pm #1113280June 25, 2019 at 9:11 pm #1113380
Thank you. Looks like the first is the post title rendered by the code and the second one is manually added to the post content. Am I correct?
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
VictoriaJune 25, 2019 at 9:58 pm #1113393
Looks like the first is the post title rendered by the code and the second one is manually added to the post content. Am I correct?
Yes, that’s right. I have added manually h1 tag in text editor. And that’s the way I would like to do it – to have a full control over them.
ArtemJune 26, 2019 at 7:01 pm #1113693
If you want full control you can use the Advanced Layout Builder to build post, then you will have to add all the elements manually. Please try that.
VictoriaJune 26, 2019 at 8:28 pm #1113712
I just want not to have any auto generated H1 tags. I don’t want to use ALB for several reasons.
Also, I have quite a lot of posts to re-build them in ALB even If I wanted to do it.
There was a solution in another thread I mentioned above, but for some reason it doesn’t work for me. I would be really thankful if you can help me to have no auto-generated H1 with the default editor.June 27, 2019 at 11:04 am #1113885
I did a research for other related threads, and found and tried all of these:
But nothing of that worked for me. Maybe it’s due to some changes of code in the latest Enfold updates.
Will be waiting for the solution.
ArtemJune 28, 2019 at 11:39 am #1114212
Can you please have Appearance > Editor enabled?
VictoriaJune 28, 2019 at 11:51 am #1114221June 29, 2019 at 2:18 pm #1114434July 3, 2019 at 11:14 am #1115429
Sorry for the delay – I was offline for a few days.
I’ve disabled cache plugin and CDN for now.
ArtemJuly 5, 2019 at 3:27 pm #1116054
Thank you for the update.
That is the default post title container. If you want to remove it, use the following snippet in the functions.php file.
remove_filter( 'post-format-standard', 'avia_default_title_filter', 10, 1 );
OR edit the includes > loop-index.php file and remove this code (line 286).
IsmaelJuly 5, 2019 at 10:40 pm #1116097
Thank you for your help. Adding the snippet in the functions.php didn’t work for me. But removing
echo $title;has done the job!
Thanks once again for your help.
ArtemJuly 6, 2019 at 7:41 pm #1116322
Glad Ismael could help, unless there is anything else we can help with on this issue, shall we close this then?
MikeJuly 10, 2019 at 12:17 pm #1117402
Yes, sure – you can close the thread now.
Thanks once again, and have a great day ;)
ArtemJuly 10, 2019 at 12:51 pm #1117421
The topic ‘Duplicate H1 tags in posts’ is closed to new replies.