/ Documentation /FAQs/How to Disable Google Fonts in the Frontend?

How to Disable Google Fonts in the Frontend?

Many users contacted us with requests to ask whether we can disable Google fonts in the frontend.

From Convert Pro version 1.2.5, we have made this possible with the use of filters. You can add the following filter in your functions.php file.

/**
* cp_remove_google_font function to remove google font from frontend
*
* @param string $style_id
* @return bool $load_font
*/
function cp_remove_google_font( $style_id ) {

// your custom logic
$load_font = false;
return $load_font;
}

add_filter( 'cpro_disable_google_font', 'cp_remove_google_font', 10, 1 );
Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Compare Convert Pro with...

29439
29440
Scroll to Top