Create a child theme in 2 minutes

Spread the love
  • 3

What is a child theme and why should you create one? The simple answer is that you probably want to some make changes to your website but you don’t want to lose the changes you applied when you update the theme.

Creating a child theme inherits all the code from the parent theme which allows you to modify any file and keep these changes without getting overwritten when the theme gets updated.

You will need to have an access to your site files, this is done via an FTP client ( use FileZilla it is free!)

You can create a child theme in only 3 simple steps:

  1. Create a child theme directory, and with that I mean create a folder inside wp-content -> themes. By convention the folder name will be your child theme name. For example if you creating a child theme for the Twenty Sixteen theme, the folder name would be “twentysixteen-child”.
  2. Create a file in your child theme directory and name it style.css and add the following code into it:

    Please note: Template is the folder name/text domain of your parent theme.

  3. Create another file in your child theme directory and name it functions.php and add the following code into it:

    Please note: 'parent-style' is the same $handle used in the parent theme when it registers its stylesheet.

Now you can make changes to any of your theme files by copying and pasting it to the child theme directory. Open the file you copied, apply your modifications and they will be kept safe!

Download a pre-made and ready-to-use Child Theme?

If you don’t want to do that stuff manually, we have created a very simple and ready-to-use child theme just download it, open style.css file and change parent-theme-directory-name to your parent theme’s directory name.

(Visited 857 times, 1 visits today)
  • 3
READ  What is WordPress? WordPress is a Great Choice for Building Website


I write about Multilingual WordPress, SEO, Website Performance. Also, I like answering WordPress question on Quora. When I have the time, I run online sessions to teach WordPress for my personal FB page fans!

sit in eget venenatis, Praesent libero elit. Praesent Aliquam fringilla quis, odio

Pin It on Pinterest

Do you find this interesting?

Share it with your friends!