A Business Bloomer fan asked me an interesting question this week: how to apply CSS on the single product page based on the product category? Well, the answer is pretty simple: if we’re able to add the category name to the HTML “body”, this can then be targeted in your custom CSS. So, let’s see how this is done! Continue reading WooCommerce: Display Product Category as “Body” Class
I have a very long to-write list. Possibly I have enough content for another 2 years 🙂
However, the other day a premium WooCommerce student asked me for some feedback on his custom CSS – so I had to give it priority! The request was: what’s the easiest way to change the little icon/button on the Cart page that has the function of removing items from the cart (yes, that ugly white cross on a red circle)? Continue reading WooCommerce: Change the “Remove this Item” Icon @ Cart
There are times when you really want to do things right, you have a 5-figures budget and all the time in this world: you might want to override the whole WooCommerce CSS by disabling it completely, and applying your custom styles instead.
Despite this is an unusual task, I’ve researched the topic and here are my findings. Enjoy!Continue reading WooCommerce: Disable Default WooCommerce CSS
Unlike your WordPress theme, you can’t just add CSS to your style.css in order to customize the look of the WooCommerce emails.
This handy PHP snippet is therefore the only viable solution. It’s a little tricky but once you get the idea adding CSS to Order Emails is actually straight forward.Continue reading WooCommerce: How to Add CSS to Order Emails
This is an interesting topic. A WordPress/WooCommerce client could not add CSS via the usual way. In fact, Gravity Forms plugin (and in particular the “directory” extension), stores entries in the database BUT the directory page and the entries filtered list have the same classes, ids, and cannot be “targeted” with CSS.
Long story short, and Gravity Form or not Gravity Form, here’s the snippet you can use to add CSS to any WordPress page as long as you know its URL.Continue reading WordPress: How to Add CSS to a Specific Page URL