Trouble with creating a child theme
-
Hello,
I’ve downloaded a theme (FashionPro) and I would like to have a child theme to modify the theme without risking losing all my modifications during an update.
In my theme folder I’ve got fashionpro and fashioprochild, I’ve set up the css file in fashioprochild but when I edit the style.css the modifications doesn’t apply on fashionpro.
fashionpro – style.css :
/*
Theme Name: FashionPro
Theme URL: https://theme-junkie.com/
Description: A magazine theme designed by Theme Junkie.
Author: Roy Guan
Author URI: https://theme-junkie.com/
Version: 1.0.1
Tags: three-columns, advertise-ready, widget-ready, advanced-theme-optionsCopyright: (c) 2010 Theme Junkie.
License: GNU/GPL Version 2 or later. https://www.gnu.org/licenses/gpl.html
*/fashionprochild – style.css :
/*
Theme Name: FashionPro Child
Theme URL: https://theme-junkie.com/
Description: Child theme for FashionPro theme
Author: Roy Guan
Author URI: https://theme-junkie.com/
Template: fashionpro_v1.0.1
Version: 1.0.1
Tags: three-columns, advertise-ready, widget-ready, advanced-theme-optionsCopyright: (c) 2010 Theme Junkie.
License: GNU/GPL Version 2 or later. https://www.gnu.org/licenses/gpl.html
*/@import url(“../fashionpro/style.css”);
#headerwrapper{ background:none; width:970px; margin:150px auto 0px auto; padding:0px; }
The line #headerwrapper doesn’t overwrite the one used by the original css in fashionpro, where did I get wrong with my child theme ?
Thanks you for your help.
Best regards,
- The topic ‘Trouble with creating a child theme’ is closed to new replies.