I know this has been said many times before but after last week’s Grisaille update, sadly, I’m still getting emails like this:
I just wanted to let you know that your latest theme update will take me HOURS to fix!
As we say here in Quebec, pas l’fun.
So for those of you who aren’t aware, always use a child theme when doing any kind of style modification to your themes. It will avoid everyone having to deal with this unpleasant and frustrating situation.
What’s a child theme?
From the Codex: “A WordPress child theme is a theme that inherits the functionality of another theme, called the parent theme, and allows you to modify, or add to, the functionality of that parent theme.”
In other words, go crazy modifying your theme but do it in a child theme since none of it can get overridden when you update the parent theme.
How does one create a child theme?
I’m glad you asked. The WordPress.org codex has instructions on exactly how to get one set up. If that doesn’t makes sense to you, I’ve made a blank child theme for you, specifically for Grisaille, which you can download further down (the big orange button). I’ve started you off with just the stylesheet, but that’s all most of you will need.
If you want to use it for any other theme, feel free to do so. You’ll need to change two things in the [highlight]style.css[/highlight] file to get it working:
- on line 6: change the Template name, which is the folder name of the parent theme you are using–careful, it’s case sensitive.
- on line 10: change the path to the style.css in your parent theme in the @import rule. This will be the same folder name as the Template name from line 6.
I hope some of you will find this useful and hopefully avoid the same fate as some of the people who emailed me about this.