If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
I was changing some css using the custom.css file but i decided to move to a child theme. It took me some time to realize that if I do not use the !important declaration in th style.css “child” file, most of the changes are not working. Do I have to use the !important after every changed?
No you shouldn’t need to. As long as the child theme css is being included after the themes css it should take priority. It will also need to have the exact same css selecter+declaration combo so that it cleanly replaces things.
will not replace
Same here. On my side it was not most of the changes, but still a view. I even had a couple of things that didn’t even work with !important. Had to place them in the custom.css file of the mother theme or the Quick CSS field in the theme options to work.
The topic ‘Use of !important in child theme’ is closed to new replies.