Hello,
You need to add !important to your styles present in the Child Theme’s style.css to override the parent styles.
For example, if you have added this and it is not working:
body {
color: #000;
}
replace that with this:
body {
color: #000 !important;
}
Hope that helps.
Thank you.
Thanks, Surya, I want to do some extensive css work, is there no other way than to add that tag to every single line?
This page has the answer, but it will not work with this theme, since this theme has a different stylesheet. I’ll use a different theme.
https://codex.wordpress.org/Child_Themes
Thanks for the input.
Hello,
I have tested your site and it seems you have added 2 codes in your Child Theme’s style.css and they are working fine.
The padding is working fine, and the font family is not working because the theme do not have that font included. You need to upload that font to your site first to make the code working.
Hope that helps.
Thank you.
Another option is ti use one of the custom CSS options.
Some themes support this, otherwise install one of the plugins, these CSS codes will be loaded AFTER your theme CSS. If customising CSS is the only reason you are using a child theme (no functions.php code), then it may be that you no longer need to use a child theme at all.