It is very important to install child theme in case you are going to modify theme files according to your needs.
The greatest advantage of the child theme is that you can store the modified theme files in it and they will never be lost after you update the parent theme.
Because child theme doesn’t require updates.
How to get started with the child theme?
The principle of work of the child theme is the same for all themes. So let’s review only Secondtouch theme as an example.
Find “secondtouch-child” zip archive in theme package.
Install it the same way as the parent theme over Appearance>Themes>Add new. Activate it.
How to upload modified files to the child theme?
Child theme fully inherits functionality of the parent theme. So you don’t have to copy all files from the parent theme. You have to copy only those files you have modified. The modified file has to have the same path as this file in the parent theme.
For instance, if you want to modify the top panel of the theme, you need to edit section-panel.php file that is stored in “templates” folder. After you have modified this file, you have to upload it to the child theme in the same folder, as it is stored in the parent theme. Example “templates/section-panel.php”.
How to add my custom CSS to the child theme?
You can insert your custom CSS codes directly to the style.css file, that is stored in child theme folder by default or to
- Theme Options>Advanced Options>CSS Code (Onetouch, Atlantis, Embrace, Ultron)
- Theme Options>Main Options>Custom CSS (Maestro, Glider, Secondtouch)
If you choose the second way, don’t worry – custom CSS won’t be lost after you update the parent theme.