How to remove styles from the site header on Wordpress?

The styles that need to be removed have class "options-output" and title "dynamic-css"

Perhaps these styles appeared after installing the plugin "Redux Framework", but not a fact.

The site has two plugins: Redux Framework, Advanced Custom Fields.

Wordpress - inline styles with the class "options-output" in the header of the site

  • Need to watch the topic. In WordPress So hard to say. - Vladimir Rodichev 4:39 pm

1 answer 1

<link rel="stylesheet" id="twentynineteen-style-css" href="wp-content/themes/twentynineteen/style.css?ver=1.3" type="text/css" media="all"> add_action ( 'wp_enqueue_scripts', function () { global $wp_styles; echo '<pre>' . print_r ( $wp_styles->queue, true ) . '</pre>'; }, 9999 ); Array ( [0] => admin-bar [1] => query-monitor [2] => wp-block-library [3] => wp-block-library-theme [4] => twentynineteen-style <<-------------------- [5] => twentynineteen-print-style ) add_action ( 'wp_enqueue_scripts', function () { wp_dequeue_style ( 'twentynineteen-style' ); wp_deregister_style ( 'twentynineteen-style' ); }, 9999 ); 
  • These styles are added by the redux plugin, and I cannot delete them in your own way. Here is my array: Array ([0] => wp-block-library [1] => kztt-style [2] => kztt-main-style [3] => redux-google-fonts-kztt) Removing redux- google-fonts-kztt didn't help. Thank. - asd-python_01 5:24 pm
  • Try deleting all styles with kztt prefix. - leninel