How to create a child theme in WordPress?

Why do you need to create a child theme?

If you want to make any changes to your WordPress theme you will need to create a child theme first, otherwise, you will lose your changes with the next theme update, so all your hard work will be lost.

If you just want to make changes to your CSS, there is an easier way and you won’t need a child theme for that, just go to Appearance – Customise – Additional CSS (Video: 9min 15sec).

However, any other file changes will need to be done in a child theme.

This is the code for the function.php, please copy and paste this into the function.php in your child theme.

The code might not be displayed on a mobile device, please open the page on a laptop or desktop computer to copy the code over, or go to

Leave a Reply