How to create a child theme
If you've made changes to your theme files, they will automatically be overwritten when you update the theme. That's why it's important that you create a child theme before updating.
By creating a child theme, you create a separate set of files that you can use to customize the theme without affecting the original theme. Not only does this make updating easier, it also makes sure that you will never ruin your original theme as you are never actually modifying the files. You can always turn off your child theme and fall back on the original.
In This Article
Creating and using child theme
Whether you've made changes to the theme files already, or plan on making alterations, it's a good idea to create a child theme. To help make it easier, we've created some barebones child themes you can use for your site. Simply download the child theme for your appropriate theme.
Adding additional CSS
Inside these child themes, you can see a stylesheet where you can add additonal css styles to your theme.
/* Theme Name: Aware Child Theme Description: Child theme for aware. Author: Themewich Template: aware */ /* Add additional CSS here */
Simply add your custom to the child theme's css file and you're ready to go!
Activating Your Child Theme
To use your child theme, be sure to zip it. Once it's zipped, you can install it just like any other theme. You'll notice that you can only activate the child theme while the correct parent theme is active.
Making Other Alterations and Additions
Adding additional CSS to the theme is great, but what if you want to edit some of the theme's template files, or add your own template files?
This is where the magic of child themes come in. If you want to make a change to a specific PHP file in your parent theme, just copy the file and paste that copy into your child theme’s folder. Once you have the file into your child theme directory, you can edit away! WordPress automatically will use that file instead of the parent theme file as long as the child theme is activated. This method applies to creating new files as well.
you should place it in
If you need additional help getting your child theme set up, feel free to email us and we'd be happy to help!