-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
Creating a child theme is a best practices for WordPress theme usage. Themes are updated periodically. If one makes changes to a theme, and then updates the theme to a new version, the changes are lost and will now have to be reapplied. The suggested solution to this problem is a child theme. Any and all changes should be made to the child theme. For a child theme, you need at least three things:
- folder name -child
- Containing function.php
- Containing style.css.
Optionally, you could copy the screenshot from the original theme.
The following is an article on child themes by Nick Schäferhoff: How To Create And Customize A WordPress Child Theme
- Download the WordPress-Child-Theme-Addons by going to the root folder.
- Click the green Code button and select the Download ZIP option.
- Go to the Download folder (can select Show in folder).
- Locate the download and start to extract the content (can right click and select Extract All...).
- In the extract form navigate to an appropriate folder.
Note: I built the current child theme while using the Twenty-Twenty parent theme.
Note: I use VS-Code, but I will try to give general instruction.
For this example I am going to configure this to be a child theme for the Twenty Twenty-One theme.
- Launch editor.
- Rename the ThemeName-child folder to the appropriate name (the Twenty Twenty-One theme folder name is twentytwentyone, so rename the folder to twentytwentyone-child).
- ...
- Create a zip file named appropriately name (the Twenty Twenty-One theme folder name is twentytwentyone, so name the file twentytwentyone-child.zip).
- Select and copy the folder from step 2 of Configure for specific child theme.
- Paste the above folder into the zip file.
- Navigate to the Themes page by Appearance => Themes.
- From the Themes page, click the Add New button.
- From the Add Themes page, click the Upload Theme button.
- From the Add Themes page, click the Choose File button. From the Windows Open form select the child theme zip file and click the Open button.
- Returns one to the Add Themes page, click the Install Now button.
- Finally, click the Activate link to activate the theme.