Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What’s in your Child Theme style.css file?
Thread Starter
schybli
(@schyblitcnetch)
just some minimum information like:
/*
Theme Name: Virtue Child
Author: my name
Description: child theme for the virtue theme
Version: 1.0
Template: virtue
*/
I have no import rule (@import) and did not change the functions.php so far, in this case there should be no styles but it still loads the css files from the parent theme.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
The @import rule is the thing that imports your parent theme styles in.
Thread Starter
schybli
(@schyblitcnetch)
yes I know but the problem is that it does load the parent css and not the child css.
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
Even if you put this CSS in it:
body { border: 10px solid red !important; }
?
the parent theme does not use style.css, i.e. any style.css of the child theme will not get linked or loaded.
the theme enqueues the styles, so you will need to do something similar with style.css from within functions.php in the child theme ; http://codex.ww.wp.xz.cn/Function_Reference/wp_enqueue_style
or possibly work with a custom CSS plugin which ususally enqueues the styles after any other stylesheets; http://ww.wp.xz.cn/plugins/search.php?q=custom+css
Thread Starter
schybli
(@schyblitcnetch)
yes even so it doesn’t work, it’s probably the php script.
I tried the same with other themes like Twenty-Thirteen and there it works fine.
…. was the feedback to Andrew issue
Thread Starter
schybli
(@schyblitcnetch)
Ok thanks, i don’t want to change the function.php
if I don’t have many changes, I use the existing custom css otherwise I choose another theme.
by the way it’s a cool theme
Had the same – but the theme supplies a “custom css” option in the advanced settings, as I found out later – that works fine for me. Good luck!
I have figured out this issue and child themes will work in next update 1.3.7 (most likely)
Look for it to be out soon.
So the update is uploaded just waiting approval but you can download here:
http://ww.wp.xz.cn/themes/download/virtue.1.3.9.zip
Kadence Themes
Thread Starter
schybli
(@schyblitcnetch)
update performed and everything works, thanks