Home web designing wordpress What is Child Theme In WordPress ,Why You Have To Use It...

What is Child Theme In WordPress ,Why You Have To Use It And How To Create Child Theme

0
SHARE

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 .

Read more : All-about-wordpress-cms-definition-working-and-use-of-wordpress

Child-theme-in-wordpress

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.

READ ALSO : -  Wordpress Guide-Add New User From Dashboard

Why Child theme usage recommended in WordPress

Child-theme-save-your-custom-changes-in-wordpress

There are few reasons so that child theme is recommended in WordPress .The reasons are as follows

  1. 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
  2. Using a child theme can speed up development time.
  3. Using a child theme is a great way to learn about WordPress theme development .
  4. By use of child theme in wordpress you can do many experiments with your current theme to give it a custom look .
  5. You can add new functions in child them of wordpress .

How A Child Theme Works

Child theme in wordpress

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 .

READ ALSO : -  Install Wordpress On Local Pc With XAMPP Bitnami Wordpress ( Install on localhost )

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 .