Monday , February 3 2025

How to remove h3 from AAPF – Advanced Ajax Product Filters (Rocket)

This article is about how to remove unused h3 tags, but not completely – just replace them to div tags. To solve this problem, you need to add this code to functions.php:

add_filter('BeRocket_AAPF_template_full_content', 'some_custom_berocket_aapf_template_full_content', 4000, 1);
add_filter('BeRocket_AAPF_template_full_element_content', 'some_custom_berocket_aapf_template_full_content', 4000, 1);
function some_custom_berocket_aapf_template_full_content($template_content) {
    $template_content['template']['content']['header']['content']['title']['tag'] = 'div';
    return $template_content;
}

About iryna

I'm Iryna, a web developer from Ukraine with a decade of experience solving complex technical challenges in the world of freelance. Throughout my career, I've worked on everything from troubleshooting server-side issues and optimizing website performance to enhancing user interfaces. On this blog, I share detailed solutions to the technical problems I’ve encountered and methods that have worked best for me. In addition to my technical expertise, I’m also passionate about digital drawing. I hope the tutorials and insights I provide here will help both fellow developers and creatives alike in their own projects.

Check Also

How to remove the redirect to the main domain for its aliases in WordPress

For multisites, the case of creating site mirrors that open the contents of the main …

Leave a Reply

Your email address will not be published. Required fields are marked *