This topic has 2 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #199875
     bingoenvato
    Participant

    Because of the EU GDPR, i want to get rid of google fonts load from googel server an serve them from my own server instead.

    Can you please post a script for functions.php for unenque the KLEO google fonts  Css and enque my own css .

    Thx

    #199937
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #199984
     Radu
    Moderator

    Hi,

    try this code

    COPY CODE
    
    /* Deqeue the google fonts */
    function sq7r_deque_kleo_gogole_fonts() {
        if( function_exists('bp_is_active') && !bp_is_members_component()) {
            wp_deregister_style('kleo-google-fonts', $google_link, array(), '', 'all' );
            wp_dequeue_style('kleo-google-fonts');
        }
    }
    add_action('wp_enqueue_scripts', 'sq7r_deque_kleo_gogole_fonts',999);
    

    Add it in funtions.php from child theme.

    You can set all all fonts from theme options to standart one

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?