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!
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
That worked, thank you so much!!!!