Why Aren’t My Styles Applying?

If you have created a child theme and have started adding custom styles to your website and they seem to not be applying, it is likely because your CSS selectors are not specific enough to override the existing rules. 

A good way to do this is to prepend the body tag to your selector.

 .selector { /** */ } 

Becomes

 body .selector { /** */ } 

Was this article helpful?

Related Articles