If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
May 22, 2012 at 12:38 pm #12604
I want to try and use a child theme and keep the core intact so I can easily upgarde however I am failry new to this. Do I need to create a css child for all the different css .files or just one ? as I see there is a layout.css, base.css, style1.css etc I f so can you help and explain what I neeed to do ?
PeterMay 23, 2012 at 6:05 am #76118
Here is what I have done.
1. Made a new folder called “child” – or whatever you want it to be
2. Made a new .css file in the “child” folder and placed this inside”
Theme Name: childtheme
Theme URI: http://www.childthemel.com.au/
Author URI: http://www.childtheme.com.au/
Tags: galleries,dual skin,three columns,shortcodes,buddypress,
REMEMBER: to change the theme details as necessary! The most important though is:
– Template: coherence – It tells the child theme what the parent theme is called.
– @import url(“../coherence/style.css”); – imports the parent them style.css etc
4. When you add .css rules to the child theme style.css file, sometimes you may need to place an !important after the rule, to force it to override the parent style, but generally it will oreide the parent style.css
5. If you need to customise any of the other theme files, i.e header.php, simply copy the file to the child theme (and the file structure where needed), and edit it in the child theme folder.
Hope this helps. I know the Devs/Mods arent very helpful on this forum.May 23, 2012 at 1:58 pm #76119May 25, 2012 at 10:44 am #76120
Many Tanks for this ….just one query do i need to create seperate .css file in the child folder for each of the other style files i.e layout.css, Style1.css (as I am using thsi skin) or will one ccss child file be OK?May 27, 2012 at 9:10 am #76121
The topic ‘Child Theme’ is closed to new replies.