Dequeuing styles
-
Topic
-
I’m having trouble dequeuing css. I’ve used a different carousel plugin than the one included and I’d like to disable its css, since it uses the same owl carousel and I don’t need it included twice. From searching the forum, it seems that dequeuing built-in stylesheets poses some challenges, so instead I have tried to dequeue the 3rd party stylesheet. In a perfect world I want to dequeue the themeblvd CSS with the handle ‘owl-carousel-css’, but will go with either.
I’m using this, which does not have any effect. Is jumpstart doing something to override it?
add_action('wp_print_styles', 'mytheme_dequeue_css_from_plugins', 100); function mytheme_dequeue_css_from_plugins() { wp_dequeue_style( "owl.carousel.style-css" ); }
Site is here: http://brewstation.staging.wpengine.com/
- You must be logged in to reply to this topic.