• Hi.
    I’m trying to deregister / dequeue some of the default stylesheets of the plugin from the functions.php of my theme but I’m unable and I don’t know what I’m doing wrong.
    The code I’m using:

    function deregister_su_styles() {
    	wp_dequeue_style( 'su-box-shortcodes' );
    	wp_deregister_style( 'su-box-shortcodes' );
    	wp_dequeue_style( 'su-content-shortcodes' );
    	wp_deregister_style( 'su-content-shortcodes' );
    }
    add_action( 'wp_print_styles', 'deregister_su_styles', 100 );

    After reloading content-shortcodes.css?ver=5.0.2 and box-shortcodes.css?ver=5.0.2 are still being loaded.

    TIA. Regards.

  • The topic ‘Unable to dequeue / deregister default stylesheets’ is closed to new replies.