Dequeue styles with query doesn’t work

Thank you very much @Tom J Nowell and @Sally CJ . As you pointed out, it worked with the below: function remove_inline_style(){ if ( is_page( ‘live’ ) ){ remove_action( ‘wp_enqueue_scripts’, array( Design_Scheme::get_instance(), ‘header_style_css’ ), 11 ); } } add_action( ‘wp_enqueue_scripts’, ‘remove_inline_style’); thank you for your help.

Loading a stylesheet conditionally & verifying CSS

If you want to load something on the archive page than, You should use is_archive() rather than is_page( ‘archived-posts’ ), and after that, you can use the keyboard command Ctrl + u to check view source of chrome. Thereafter, use command Ctrl + f to search ‘arch-post-stylesheet’css handle’ (Don’t forget to remove quotes while searching).