Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #422942

    Hello,

    On my site I’ve enabled the titlebar in the header because I like the design of it. The thing is, I don’t want any text in it.
    Currently I’ve just hidden the text but I noticed that the text has a H1-tag. This isn’t good for SEO because I have 2 H1-tags right now.

    What file can I edit to remove the H1-tag out of the titlebar?

    Thanks!

    #422994

    Hi JerrelZ!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter('avf_title_args', 'change_title_tag', 10, 2);
    function change_title_tag($args,$id)
    {
            $args['link'] = get_permalink($id);
            $args['heading'] = 'div';
        return $args;
    }
    

    It would change the tag to div

    Cheers!
    Yigit

    #423017

    Awesome! That’s why I love Enfold so much, great theme and great support :)!

    #423021

    Hey!

    You are welcome, we are always happy to help :)
    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 :)

    Have a nice weekend!

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘How to remove the H1 from the titlebar’ is closed to new replies.