Definition:
A child theme is a term linked to WordPress and that is linked to the basic functionalities of a main theme or a parent theme, allowing them to be improved, modified and expanded.
Table of Contents
What is a child theme?
A child theme is a theme that inherits the basic functions of a parent theme or parent theme and seeks to improve, modify, and expand them. The functionalities can range from adding thumbnails to publications, adding additional sizes to the thumbnails, adding widgets, changing the text that appears after the extract of a post, adding new styles…
What is it for?
WordPress is known to work with a number of templates and that they don’t always meet the interests you’re looking for. If what you are looking for is to expand and extend the functionalities without losing updates, the solution is the child theme.
The main functionality that the child theme has is not wanting to lose changes to the theme every time an update is made. The child theme is not updated or overwritten. It only inherits the functionalities of the parent theme.
How to Create a Child Theme in WordPress
To be able to develop a child theme in WordPress, the main thing is to have FTP access to the files of the site to be able to do it. Creation can be done both through a plugin and from scratch.
- If we do it from scratch. It is the most used method. It must be accessed via FTP or through the web’s file manager. Within the WordPress file structure there must be a folder that is called wp-content. It saves the themes that you have installed (whether or not they are activated). You have to choose the theme for which you want to create a child theme. The most normal thing will be that it is generated from the theme that at that moment is active. The theme is chosen and a new folder is created, where the files are to be entered. It should be named the following way to nametheme-child, where “nametheme” is the name of the folder of the theme for which you want to create the child theme. Enter the folder and must be generated on the one hand a file called style.css( which must be filled with information) and another called functions.php. Like style.css should be saved in the root directory of the child theme.
- As for through the plugin. The first thing to do is to install the plugin. It is available in the WordPress repository. Once installed and activated, you have to go to the WordPress > dashboard Child Themes > Parent / Child Tools>. And follow a series of steps for the development of your configuration