After the upgrade to WC 2.1.2 my styling seems to be overruled by the standard WC styling. Is there a way to overrule the standard WC styling without using solutions like using the !important
or other hackish methods?
Maybe by enqueueing it in a certain way in functions.php
?
A lot of people recommend to disable WC styles and to copy all the styles into your own theme styles. But isn’t this bad if Woocommerce adds functionality?
wp_enqueue_style
supports dependencies. So, if you make the WooCommerce style a dependency for your new stylesheet then your stylesheet will always load after the WooCommerce stylesheet.Something like this ought to work, but it is untested:
EDIT: It turns out you don’t need to use dependencies. You just need to enqueue your styles after WooCommerce enqueue’s theirs…. by using a later priority.