Tagged: ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #699263

    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?

    #699330

    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

    #700065

    Hello,

    thank you, but h1 Tag in Title is still there.
    Here`re all my settings: https://tresor.it/s#F2O7RU141gyyIou3Akn5Vg

    #700084

    Hi!

    Could you please create a temporary admin login and post it here privately so we can look into it?

    Best regards,
    Yigit

    #702006

    Login is created and sent to you(private)

    #702071

    Hi!

    Seems like it did not work. Can you please try posting them once again?

    Best regards,
    Yigit

    #702079

    send …

    #702086

    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

    #702101

    Thank you it works!

    Nice job.

    #702102

    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

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Two times H1 Tag – not perfect for SEO’ is closed to new replies.