Reply To: How to dequeue google fonts

#9673
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi!

There is no working custom code to handle this, as the action is added via a singleton class which does not exist when the theme is initalized.

You can however bypass it by editing the ajax-search-pro\includes\classes\actions\class-asp-customfonts.php file, by removing/disabling lines 23-24:

$_cf = WD_ASP_Search_Shortcode::getInstance();
$_cf->fonts();

Just remove those lines, or put them into comments.

——–

I’m going to add a filter to the upcoming release, so you won’t have to do this again after update. In the next update just use this code:

add_filter('asp_custom_fonts', 'asp_null_css');
function asp_null_css($css_arr) {
    return array();
}
Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)