What is Child theme in wordpress
A child theme is a theme with characteristics and files transmitted from parent theme . Child theme’s functionality and styling is same with another theme . It is called parent theme .
A WordPress child theme is a WordPress theme that inherits its functionality from another WordPress theme, the parent theme. Child themes are often used when you want to customize or tweak an existing WordPress theme without losing the ability to upgrade that theme .In the past, there was no easy way of updating WordPress themes without losing all the custom styling and changes that you had made. This becomes chaos when all the sudden you find out a widely used script in popular themes has a major exploit, and you need to update your themes ASAP. It becomes a tough choice because on one hand, you would lose all the custom styles if you update. On the other hand, you risk your site getting hacked if you don’t update fast enough.
Why Child theme usage recommended in WordPress
There are few reasons so that child theme is recommended in WordPress .The reasons are as follows
- Theme developers release the regular updates for core theme files . If you modify a theme core file such as header file directly and after that theme updated , then your modifications may be lost .By using a child theme you will ensure that your modifications are preserved. Read also :Create wordpress custom header
- Using a child theme can speed up development time.
- Using a child theme is a great way to learn about WordPress theme development .
- By use of child theme in wordpress you can do many experiments with your current theme to give it a custom look .
- You can add new functions in child them of wordpress .
How A Child Theme Works
WordPress have full compatibility with child themes . To create a child theme for parent , follow the process . Just go inside the themes folder . Locate the parent theme . And create a new folder with naming as parent theme name + child .
As in the upper image tectrick-child is parent theme of tectrick theme After that you have to copy the required file from parent theme and paste them in the tectrick-child .
After that you can this theme is automaticaly displayed in the Editor section of wordpress dashboard . All of changes done in child theme reflected in all of your website .