I have this two line below on my parent theme

wp_enqueue_style('theme-dynamic-styles', get_template_directory_uri() . '/custom.css');        
wp_add_inline_style('theme-dynamic-styles', $output);

this custom css, which I want to dequeue on child theme, but both using same handle name – ‘theme-dynamic-styles’, hence both got dequeued. Is there way to dequeue only enqueue style not wp_add_inline_style?

Read more here: Dequeue only stylesheets not wp_add_inline_styles


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: