How to override parent theme style files with copies in the child folder?
-
My understanding is that this is pretty common practice for themes.
If I copy files from
wp-content/themes/woodmart/css/parts
to
wp-content/themes/woodmart-child/css/parts
i.e.: header-base.min.css
The copy in the child folder should be loaded afterwards to override the parent copy.
My understanding is it just takes some functions.php code to achieve. Please assist.
Thank you
-
This topic was modified 2 years ago by
chrisapps.
Hello,
Regardless of the theme you use: parent or child, please move all CSS to the Theme Settings > Custom CSS.
All the JS should be moved into the Theme Settings > Additional CSS.
PHP should be inserted into functions.php of the child theme, in this case, all the customization would remain after the theme update.
If you have any questions please feel free to contact us.
Best Regards