jaw@jawtemplates.com

How to create child theme

Why use a Child Theme? [1]

Here are a few reasons:

  • If you modify an existing theme and it is updated, your changes will be lost. With a child theme, you can update the parent theme (which might be important for security or functionality) and still keep your changes.
  • It can speed up development time.
  • It’s a great way to get started if you are just learning WordPress theme development

 

 

How to do it

1 – Unpack goodstore-child.zip into /wp-content/themes/ folder

Basic child theme you can find in main_files folder

 

2 – Create a file named “functions.php” in child theme.

function_php

3 – Activate Child theme in Appearance -> Themes

activate_child

If you want to change something e.g. in template /goodstore/templates/blog/single-post.php, please create it in child theme with the same structure. So if the tutorial say: change /goodstore/framework/lib/builder/editor-dialogs/blog.php file, so copy that file into child theme. /goodstore-child/framework/lib/builder/editor-dialogs/blog.php and edit it there.

More information.

 

Bibliography

Child Themes. In: [online]. Available from: http://codex.wordpress.org/Child_Themes#Why_use_a_Child_Theme.3F

  • Was this Helpful ?
  • yes   no
Rate it!
JaW Templates How to create child theme
Users rating: (0 votes)

Leave a Reply

You must be logged in to post a comment.