No results found. Try again with different words?

Search must be at least 3 characters.

    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 article helpful?

    Did not find a solution? We are here to help you succeed.

    Related Docs

    Grab Our Biggest Discount Of All Time. Don’t Miss Out!

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    Grab this rare opportunity to save up to 50%

    WOAH, HOLD ON THERE!

    Don't Miss Our Biggest Discount

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    You are backed by 100% risk-free money-back guarantee.

    Compare Convert Pro with...

    29439
    29440
    Scroll to Top