Hey,
I have the problem when I check “Header Title and Breadcrumbs” in Theme Options “Header Section” that in source-code are two H1-Tags, when also have a H1 Tag in my own content.
Why is the Title a h1?
Two h1 Tags on one site is not perfect for SEO-Reasons.
Screenshot: https://tresor.it/s#NOgpvPdbsWxzHfuWoRLcag
Workaround?
Hi dillionline!
Please add following code to Functions.php file in Appearance > Editor
add_filter('avf_title_args', 'avia_remove_h1_hidden_title', 10, 2);
function avia_remove_h1_hidden_title($args,$id)
{
$header_settings = avia_header_setting();
if($header_settings['header_title_bar'] == 'breadcrumbs_only')
{
$args['html'] = "<div class='{class} title_container'><div class='container'>{additions}</div></div>";
}
return $args;
}
Regards,
Yigit
Hello,
thank you, but h1 Tag in Title is still there.
Here`re all my settings: https://tresor.it/s#F2O7RU141gyyIou3Akn5Vg
Hi!
Could you please create a temporary admin login and post it here privately so we can look into it?
Best regards,
Yigit
Login is created and sent to you(private)
Hi!
Seems like it did not work. Can you please try posting them once again?
Best regards,
Yigit
send …
Hey!
I added following code to Functions.php file in Appearance > Editor
add_filter('avf_title_args', 'fix_single_post_title_tag', 10, 2);
function fix_single_post_title_tag($args,$id)
{
$args['heading'] = 'span';
return $args;
}
Please review your website now
Cheers!
Yigit
Thank you it works!
Nice job.
Hey!
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 post them here on the forum and we will gladly try to help you :)
Cheers!
Yigit