Home Forums Glissando Remove Google Fonts?

This topic contains 8 replies, has 2 voices, and was last updated by  elbsurfer 6 hours ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #48145

    elbsurfer
    Participant

    Hello,
    since GDPR is in place I want to host the Google fonts being used in Glissando locally.

    I see that in the backend’s theme options I can select fonts which are not coming from Google, but I want to keep using the same fonts, but host them locally.

    How can I remove the fonts being loaded from Google?

    #48151

    Joshua
    Keymaster

    You can dequeue these styles by adding the following to your child theme’s functions.php file:

    function luxe_remove_google_font_links() {
       wp_dequeue_style( 'redux-google-fonts-luxe_options' );
    }
    add_action( 'wp_print_scripts', 'luxe_remove_google_font_links', 100 );

    This will let you choose fonts still from theme options for various bits of typography, but keep in mind you’ll need to add the CSS to load your fonts locally and upload to your server (or use a plugin to handle this).

    • This reply was modified 5 days, 11 hours ago by  Joshua.
    • This reply was modified 2 days, 9 hours ago by  Joshua.
    #48193

    elbsurfer
    Participant

    Hello Joshua,
    thanks for getting back to me. Can you highlight the steps a bit more specific?

    I did put the mentioned code in my child theme’s functions.php. In the theme options I have still this Font from Google Fonts selected: https://d.pr/i/Bww3zO And I did upload this font to my server and included it in the style.css file, but however the call to Google Fonts is still being made, despite of having the code in my functions.php. Do you have any idea?

    Thanks!

    #48195

    Joshua
    Keymaster

    The steps you took to add the code were correct. I’ve modified the above code slightly though, so you can try copying and replacing what you pasted in your child theme’s functions.php again.

    Do you have a link to your site I could take a look at?

    #48196

    elbsurfer
    Participant

    Hello Joshua,
    hmm also with wp_enqueue_scripts it does not work. Usually I use wp_print_styles as well do deregister/dequeue styles.

    The site is this one: https://xs-communications.com/ Do you have another idea?

    #48198

    Joshua
    Keymaster

    Modified the name above slightly- let’s try replacing one more time.

    #48199

    elbsurfer
    Participant

    Unfortunately this has no result either…

    #48201

    Joshua
    Keymaster

    If you can privately post your login credentials, I’ll be happy to take a look for you.

    #48203

    elbsurfer
    Participant
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.