This topic has 6 replies, 2 voices, and was last updated 7 years, 2 months ago ago by Rose Tyler
We have the child theme running, but in one of the parent theme css files (plugin.css) we see this:
.wpb_wrapper .smile_icon_list li .icon_description p {
color: #767676 !important;
line-height: 1.8 !important;
}
I understand I can simply remove the “!important” and then am able to override with the child theme css, but is there a way to put the plugin.css file in the child theme, and alter it there so that if the parent theme is updated we don’t lose that change?
If so, could someone point us in the right direction on how to override parent css files using the child theme structure.
Hope that makes sense! 🙂
Hello,
Please provide me link to page on your site where this code is using. I will provide you code to add in style.css file of your child theme.
Regards
Is there a way to simply “duplicate” the plugin.css file into the child theme and then update that file so that it doesn’t get changed when anything is updated in the parent theme?
Hello,
It is a bad practice to copy full css file into child theme, so it would be better inspect code on your site and write only needed code in style.css of child theme.
Regards
OK, thank you … we’ll work on specificity to see if that will actually override css that uses “!important” already within it.
Hello,
You’re welcome! Feel free to ask if you have any other questions.
Regards
You must be logged in to reply to this topic.Log in/Sign up