Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #637735

    I am using Enfold with a child theme. I want to remove the H1 that is to the left of the breadcrumbs. I add my own H1 on the pages (in the avia layout builder) because of my personal design preferences. Is there any way that I can remove the H1 from the code in the title area within my child theme and not editing the parent theme? Right now, if I display only the breadcrumbs I have 2 H1s on each page.

    Thanks!

    #638087

    Hey blizzmarketing,

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

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

    Best regards,
    Yigit

    #638213

    That worked, thank you so much!!!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Removing the H1 when the Title is hidden and Breadcrumbs are displayed’ is closed to new replies.