A child theme allows you to change small aspects of your site’s appearance yet still preserve your theme’s look and functionality. To understand how child themes work it is first important to understand the relationship between parent and child themes.
Now you think that what is parent theme and what is the purpose behind this parent and child theme??
Let’s start with the parent theme first and then go to child theme.
What is a Parent Theme?
A parent theme is a complete theme which includes all of the required WordPress template files and assets for the theme to work. All themes – excluding child themes – are considered parent themes.
What is a Child Theme?
As indicated in the overview, a child theme inherits the look and feel of the parent theme and all of its functions, but can be used to make modifications to any part of the theme. In this way, customizations are kept separate from the parent theme’s files. Using a child theme lets you upgrade the parent theme without affecting the customizations you’ve made to your site.
- make your modifications portable and replicable;
- keep customization separate from parent theme functions;
- allow parent themes to be updated without destroying your modifications;
- allow you to take advantage of the effort and testing put into parent theme;
- save on development time since you are not recreating the wheel; and
- are a great way to start learning about theme development.
In short, If i have created one theme in WordPress and once done with the theme, i want to use the same theme in my another project but need some layout change and some additional functionality then at that time i have to create child theme of parent theme so that make ease of development for me to preserve parent theme content and override that design /functionality in child-theme so that if you have any problem in child theme you can continue your site with the parent theme instead of put it in maintenance mode.
I hope this make your mind clear with what is theme in WordPress and how you can create these and now you can Click here to know how to create child theme click here