Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1201218
    upskillacademy
    Participant

    Hi Guys,

    For some reason I cannot stop this from loading on my site.

    https://fonts.googleapis.com/css?family=Lato:400&subset=latin,latin-ext&ver=4.6.2

    I’ve tried the adding the different code snippets as noted on this site to the functions.php to solve this issue- but none of them are working?

    Any ideas?

    Cheers

    Dk

    #1201547
    Rupok
    Member

    Hi There,

    To remove all google fonts, please add the following code under functions.php file locates in child theme:

    add_action( 'wp_print_styles', 'my_deregister_styles', 100 );
    function my_deregister_styles() {
    	wp_deregister_style( 'x-google-fonts' );
    }

    If google font still loads, then it might be coming from any plugin.

    Hope it helps 🙂

    #1201592
    upskillacademy
    Participant

    Hi Rupok,

    So I added the code+ disabled the only thing I can think of that is loading it (the slider) and its still appearing?

    #1201713
    Friech
    Moderator

    Hi There,

    On dashboard navigate to Punch Fonts and remove all the Google fonts request.

    If this does not work, please provide us login credentials in private reply so we can take a closer look.

    Thanks.

    #1201802
    upskillacademy
    Participant

    Hello,

    Thank you- but for some reason I cannot see Punch Fonts in my dashboard anywhere?

    thank you

    #1201866
    Christian
    Moderator

    Sorry for the confusion. Please add the code below in your Appearance > Customize > Custom > Global CSS

    add_action( 'wp_enqueue_scripts', 'remove_x_google_fonts', 20 );
    
    function remove_x_google_fonts() {
        wp_dequeue_style( 'x-google-fonts' );
    }
    

    Hope that helps. 🙂

  • <script> jQuery(function($){ $("#no-reply-1201218 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>