I want to remove dynamic css from header of my plugin.

<style type="text/css" title="dynamic-css" class="options-output"> ... </style>

I use this code for remove other styles but can't remove this one:

    function remove_all_theme_styles() {
    global $wp_styles;
    foreach ( $wp_styles->queue as $style ) :
        if ( 'idcrm-contacts' !== $style && 'monster-style' !== $style ) {
            wp_deregister_style( $style );
            wp_dequeue_style( $style );

    add_action( 'wp_print_styles', 'remove_all_theme_styles', 100 );
  • That’s not a standard WordPress style tag. You need to figure out which theme or plugin is adding it and then contact it’s author for assistance. 3rd party plugins are off topic Nov 30 '21 at 0:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.