How to Create Child Theme in Magento 2

The theme defines the look and feel of your store. One for Magento default theme “Luma”. If you want to changes in existing theme then you have to create a child theme of the existing theme rather than implementing the changes in the parent theme.

Why should I make a child theme?

Because, if the changes are directly done in the parent theme, upgrading the Magento version or upgrading the theme results in loss of theme changes in the parent theme.

Steps to create Child Theme:

Vendor Name: InnovationM

Parent Theme name: luma

  1. Create a folder of child theme “luma_child’ in the below-mentioned folder path.

Magento root app/design/frontend/Innovationm/luma_child

  1. Create file theme.xml inside the child theme


  1. Create a registration.php file for registering your child theme.


  1. Create composer.json


  1. Create a web directory inside the child theme with the following empty directories and files. The whole directory
  2. Provide access/permission for child theme directories and files. Go to the child theme directory in the terminal and run this command to give permissions for the child theme directory: chmod -R 777 *.
  3. The admin panel shows the created child theme.

Go to Admin -> Content ->Themes

Go to Content > Design > Configuration.

Select the child theme


Run the commands


  1. The newly created child theme will also deploy in the pub/static folder.


Our Blog helps to change the appearance of the existing themes by creating a child theme. You can go now customize our child theme.

We hope this post is useful. HAPPY CODING 🙂

Leave a Reply