Treat yourself this Halloween 🍬

Use coupon code HALLOWEEN20 for 20% off sitewide!

0Days

0Hours

0Minutes

0Seconds

How to create custom Divi module

Apr 24, 2020 | Divi Resources

How to create custom Divi module part 3: Understanding yarn commands

In the previous tutorial, we have set up the structure of the divi module. For starting the development, we need to run some commands using package manager yarn. Those commands will help us in all the way to develop the custom Divi Module.

yarn start

Yarn starts command

[code lang=”js”]function (t){
return s.a.createElement(
p.a,g({rawContentProcesser:_.a.replaceCodeContentEntities},e.props)
)}[/code]

To fix this issue, Add the below-mentioned code in your DiviExtensionTutorial.php file. You may locate this file plugins/divi-extension-tutorial/includes folder. This code is for module development purposes. Don’t forget to remove this code while you create a zip file of your final Divi Module. Here, You may find more detail about this issue.

Keep the yarn start command running while developing the custom module. This will compile your module automatically when you make any changes in CSS, JS, or JSX file.

yarn build

This command will create the build file of your custom module.

yarn zip

This command will create the zip file.

yarn eject

After finishing everything, run yarn eject command.

In this video, you can see what we have done so far.

In the next tutorial, I’ll cover the module functions and setting fields. Leave a comment if you face any problem so far.

Posted By:
Arif
Dreamer, Schemer, Music & Technology enthusiast. He enjoys building things that speak HTTP. Arif is Development Head at Elicus and has over 13 years experience in the WordPress development industry.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Top WordPress Halloween Deals on Plugins, Themes and Hosting in 2025

Top WordPress Halloween Deals on Plugins, Themes and Hosting in 2025

Halloween 2025 is packed with killer discounts for WordPress enthusiasts, especially Divi users. Mix in Divi-specific tools with essential plugins, themes, and hosting to level up your sites at slashed prices. We've rounded up standout offers to help you build faster,...

How to Add a Product Search Bar in Divi?

How to Add a Product Search Bar in Divi?

If you have an e-commerce store, it is key to make it easy for customers to find and purchase products.  If you are using the Divi website builder, you are among the lucky ones, due to the ease of adding the Divi product search bar. The faster it is to find...

What Is Woo Product Gallery and How to Add It in Divi 5?

What Is Woo Product Gallery and How to Add It in Divi 5?

A product gallery can help you display products to your target customers easily.  The customers will see a wide variety of products in different dimensions and variants. Therefore, they can make an informed decision based on what they see. This can help boost...

Divi WooCommerce Extended