Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #481691

    Hey guys!

    I’m using some custom fonts on my site http://bit.ly/1IQlFE8 not the google fonts that come with the theme so how can I prevent these stylesheets http://drif.tt/1Di3l4l form being loaded? Because tthey are not necessary.

    Please let me know!
    Thanks

    #482044

    Hi Gigi!

    Thank you for using Enfold.

    Use this in the functions.php file to disable the default google font:

    /* Disable Google Font embedding */
    add_action( 'init', 'enfold_customization_switch_fonts' );
    function enfold_customization_switch_fonts() {
        global $avia;
        $avia->style->print_extra_output = false;
    }

    Regards,
    Ismael

    #482193

    Thanks for the quick reply, I have added the PHP but I still see the stylesheet being loaded http://drif.tt/1JHyHmb

    Any other suggestion?

    Thank you!

    #483229

    Hey!

    please refer to this answer: https://kriesi.at/support/topic/remove-google-web-font/#post-206003

    Regards,
    Andy

    #483443

    I have disabled all the google fonts i can http://drif.tt/1IHakQc but apparently I cant choose anything else but Google fonts for the heading.

    I don’t understand why it keeps on loading these now unless and unused fonts.. http://drif.tt/1IHasiN
    I’ll leave my logins so you can take a look

    Thank you!

    • This reply was modified 8 years, 10 months ago by Gigi.
    #484267

    Hi!

    I’m not seeing any Google Font in the Resources lists, you may still see it because you’re logged-in (WordPress uses Open Sans in its interface).

    Cheers!
    Josue

    #484573

    You are right! We are all done with this ticket :)

    Thanks!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Google Fonts Stylesheet’ is closed to new replies.