Today we are here with some new stuff that can help you in preserving changes to main-module.php file by using the child theme. We all know that whenever the Divi updated version is released and if we update the theme then all the changes are lost, that we have performed in the main-module.php. In this article, we are going to show how we can preserve these changes.

Process of Using main-module.php file in Child Theme

Child Theme

  • Now you can perform the changes in this main-module.php file in the root folder of the child theme.
  • Now open the function.php file of the child theme and add the given code below in the functions.php file.

Use Child Theme

All the changes in the main-module.php file are preserved and if we update the theme then the changes will not be lost.

Feel free to comment below for any other help.

You May Also Like

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

Subscribe To Our Newsletter For More Tips & Tricks on Elegant Themes

You have Successfully Subscribed!

Share This