Website Development Prices

Search Blog

Saturday, December 21, 2019

How to create child theme in wordpress

There is one main reason why I like to create child theme in Wordpress - if I make some changes in theme, for example, css or to the theme, when next update of theme comes and I update a theme, all changes will be gone. Unless I have a copy somewhere else, except on website, I would need to start over. While to keep a copy of website is good practice, it's also good practice to create a child theme.
The other reason is, whatever you have in child theme will overwrite what's in parent theme.   

Note: this child theme will be created locally - on my computer, not live website and I will be using twentyseventeen theme as an example. 

1) Go to your themes folder. Local Disk (C:) -> xampp -> htdocs -> police-dept-1 (this is the name of your database when you installed Wordpress) ->wp-content -> themes.

2) In folder themes create new folder, name it like your theme-child, in this example, twentyseventeen-child. You can name it however you want, but it's recommended this way.