Dequeue Select2 styles
-
I am looking for a way to dequeue Dokan Lite’s select2 CSS styles.
WooCommerce already has it’s styles for select2 elements and my theme adds to (and overwrites) the WooCommerce select2 styles.
But in some spots the Dokan Lite plugin is overwriting our theme’s select2 styles – for example on the Edit Address page the Dokan styles are applied to the select2 elements, but on the checkout (billing) form our theme’s styles are applied.
While on Dokan Dashboard pages (for example the edit product page) the styles are a mix of Dokan’s style and our theme’s.
I would like to dequeue Dokan’s select2 styles and just have my theme (and WooCommerce) apply styles.
I see that the function ‘register_all_scripts’ on the assets.php is what is used to load the styles, but I cannot figure out how to filter which styles are loaded.
Cheers
- The topic ‘Dequeue Select2 styles’ is closed to new replies.