Woocommerce css overriding my css even though it loads before
-
I am trying to adjust the styling on my cart page to make it more responsive
I have changed the priority of the stylesheets enqueuing so that my theme css loads after the woocommerce css. You can see for yourself in a screenshot of my cart-page source. (or just follow my cart link.)
Most of my adjustments have held and are working well, but for some reason when I am trying to change:
@media only screen and (max-width: 768px) { .woocommerce td.product-name dl.variation dt { margin-bottom: none !important; }
The woocommerce css continues to overide my theme css.
In my inspector I can see that the woocommerce css is still loading after my css, I took another screenshot to show this.
Having said that, I committed a cardinal sin just to test things out and changed the styling directly in woocommerce.css, and the problem still persisted. My changes didn’t take effect.
I am not using any caching plugin and cleared my browser cache, I am pretty much at a loss … (that doesn’t say much as I am pretty new to all of this.)
If you could give me some pointers as to why this particular piece of css is persisting while my other changes hold I would be eternally grateful.
p.s.
Any chance you guys will be developing the cart to be mobile responsive. I am in China and if a site doesn’t work on mobile it may as well not exist.
- The topic ‘Woocommerce css overriding my css even though it loads before’ is closed to new replies.