• Resolved Martin Braun

    (@martinbraun)


    Once activated, this plugin will add this HTML into the page:

    <link rel=’stylesheet’ id=’googleFontsOpenSans-css’ href=’//fonts.googleapis.com/css?family=Open+Sans%3A400%2C600%2C700%2C800%2C300′ type=’text/css’ media=’all’ />

    We don’t wish that for privacy reasons. How can we disable Google Font’s altogether? We have those fonts added locally.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support crodriguez1991

    (@crodriguez1991)

    Hi there,
    thank you for contacting us.
    You can dequeue Google Fonts adding following code in the file functions.php of your theme.

    add_action( 'wp_enqueue_scripts', 'yith_wcbm_dequeue_google_fonts',999 );
    
    function yith_wcbm_dequeue_google_fonts(){
        wp_dequeue_style( 'googleFontsOpenSans' );
    }

    Then you can add a simple CSS rule to use your font family (Verdana for example).

    .yith-wcbm-badge {
        font-family : "Verdana", sans-serif!important;
    }

    Please check it and let me know.

    Have a good day.

    Thread Starter Martin Braun

    (@martinbraun)

    Thanks Carlos,

    worked like charm. ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to disable Google Font’s?’ is closed to new replies.