child theme styles not overriding
-
I recently created a child theme for an already modified parent theme, and then the same theme unmodified — the latter was done because the former child attempt wasn’t working properly, as described below.
The issues in both cases are:
1) In order to make my css work, I have to add the!important
rule to nearly every property.
2) Some properties don’t take over even with the!important
rule applied, and hence don’t work at all.The theme worked as desired when I had modified it and did not use a child theme.
I’ve checked the theme’s code and there are no existing, relevant
!important
rules in its stylesheets which would prevent my css from working.I followed the codex instructions for setting up child themes in both scenarios (modified and unmodified theme).
The theme in question is designed to be child-friendly — included in the .zip is the child directory with style.css and functions.php, so I also tried using the supplied goodies.
- The topic ‘child theme styles not overriding’ is closed to new replies.