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 );
Not the solution you are looking for? Check other articles, or open a support ticket.