• Resolved devguy

    (@devguy)


    Hi,

    Nice plugin love it.
    One small issue i’m having though is removing the open sansd google font from the head section.
    I have tried using this code in my functions.php file but its not working.

    add_action( 'wp_enqueue_scripts', 'remove_asl_gf', 20 );
    function remove_asl_gf() {
        wp_dequeue_style( 'wpdreams-gf-opensans' );
        wp_deregister_style( 'wpdreams-gf-opensans' );
    }

    How can I remove it without modifying the plugin, as I don’t want to have to edit the plugin each time I update the plugin. Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi!

    Thank you for your kind words!

    That code is no longer valid for the latest releases, this should do the trick:

    add_filter( 'asl_custom_fonts', 'remove_asl_gf', 10, 1);
    function remove_asl_gf( $imports ) {
        return array();
    }
    Thread Starter devguy

    (@devguy)

    Awesome,

    It works, thank you for the fast reply and the work you have put in to this plugin. Legend ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove the open sans google font from the head section’ is closed to new replies.