Support » Plugin: Hustle - Pop-Ups, Slide-ins and Email Opt-ins » How to stop loading Google fonts in Hustle?

  • Resolved WP-ME.com

    (@wp-me)


    I don’t use Google fonts on my website and I use a premium font, however Hustle loads fonts from Google which affects page size and load time and I can’t see any option to disable it.

    <link rel='stylesheet' id='hstl-roboto-css' href='https://fonts.googleapis.com/css?family=Roboto+Condensed%3A300%2C300i%2C400%2C400i%2C700%2C700i%7CRoboto%3A300%2C300i%2C400%2C400i%2C500%2C500i%2C700%2C700i&ver=4.9.7' type='text/css' media='all' />
    <link rel='stylesheet' id='hstl-opensans-css' href='https://fonts.googleapis.com/css?family=Open+Sans%3A400%2C400i%2C700%2C700i&ver=4.9.7' type='text/css' media='all' />
    <link rel='stylesheet' id='hstl-source-code-pro-css' href='https://fonts.googleapis.com/css?family=Source+Code+Pro&ver=4.9.7' type='text/css' media='all' />

    How to permanently remove the fonts?

Viewing 1 replies (of 1 total)
  • Plugin Support Oguz – WPMU DEV Support

    (@wpmudev-support8)

    Hey @wp-me,

    Hope you’re well.

    I am afraid there is no option related to that in the current version of Hustle. But you can try small code trick;

    function hustle_remove_google_fonts() {
        return false;
    }
    add_filter( 'hustle_load_google_fonts', 'hustle_remove_google_fonts' );

    You should add above codes to the end of your theme’s functions.php file.

    Cheers,
    Oguz

Viewing 1 replies (of 1 total)
  • The topic ‘How to stop loading Google fonts in Hustle?’ is closed to new replies.