• Resolved samthedev

    (@samthedev)


    We would like to disable Google fonts loaded by Lodgix from the site. We tried this on our functions.php:

    function remove_lodgix_google_fonts() {  
        wp_dequeue_style( 'lodgix_font_open_sans_css' ); 
        wp_dequeue_style( 'lodgix_font_open_sans_condensed_css-css' );
    }
    add_action( 'wp_enqueue_scripts', 'remove_lodgix_google_fonts' );

    Unfortunately this does not work. What are we missing?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter samthedev

    (@samthedev)

    Solved this by:

    function deregister_lodgix_styles() {
    	
        wp_deregister_style( 'lodgix_font_open_sans_css' ); 
    	
        wp_deregister_style( 'lodgix_font_open_sans_condensed_css-css' );
    	
    }
    add_action( 'wp_print_styles', 'deregister_lodgix_styles', 100 );
Viewing 1 replies (of 1 total)
  • The topic ‘Dequeue google fonts’ is closed to new replies.