Reply To: Override WPGeo Styles

#2013

John Allsopp
Expired Member
Post count: 399

Hi @guust
The child theme’s style.css will override the parent theme’s style.css, but it loads before stylesheets for plugins, so it won’t override them.

My solution makes the new stylesheet load last (after all theme and plugins) so yes, you won’t need to use !important if you do it my way 🙂

nb: An alternative would be to find the enqueue statement for the plugin you want to override (in the plugin files) and dequeue it, then enqueue it yourself with a higher priority to bring it before your theme – but that requires finding how it was enqueued (and doing it for all the plugins you want to override) – so i find it easier to just load a new stylesheet after everything else.

20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount