• Hi there, we’re trying to stop the following from loading to help improve page performance:

    /yith-woocommerce-badges-management/assets/fonts/open-sans/open-sans-v27-latin-ext_latin-700.woff2

    I found some previous threads on the same topic but I can’t get the code to work in our example:

    add_action( ‘wp_enqueue_scripts’, ‘yith_wcbm_dequeue_google_fonts’,999 );

    function yith_wcbm_dequeue_google_fonts(){
    wp_dequeue_style( ‘googleFontsOpenSans’ );
    }

    php

    .yith-wcbm-badge {
    font-family: ‘Poppins’, sans-serif;
    }

    css

    Any help appreciated!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,

    Please add the following PHP code in the functions.php file of your current theme and then check if the issue is solved:

    if ( ! function_exists( 'yith_wcbm_dequeue_google_fonts' ) ) {
    	add_action( 'wp_enqueue_scripts', 'yith_wcbm_dequeue_google_fonts', 99 );
    	function yith_wcbm_dequeue_google_fonts(){
    		wp_dequeue_style( 'yith-gfont-open-sans' );
    	}
    }

    Let us know if you need more help.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable open sans font’ is closed to new replies.