Dequeue only stylesheets not wp_add_inline_styles

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

Leave a Reply

Your email address will not be published. Required fields are marked *