Put One Divi Accordion Module inside Another

If you need to embed one Divi module inside another, there are several plugins out there that may help, such as Simple Divi Shortcodes (free), Shortcodes for Divi (also free), or Divi Shortcodes (premium). They all work in more or less the same way – you save...

Use Shortcode in Divi Image Module

The Divi Theme Image Module lets you upload and display an image in your page. But if you need to set the Image dynamically, here's how to use a shortcode to set the image URL. Step 1: Enable shortcodes in the image module URL field By default Divi doesn't support...

WooCommerce Product Price Shortcode

Here's the PHP code for adding a custom shortcode to your site, which will output the price of a given WooCommerce product: add_shortcode('db_wc_product_price', 'db_wc_product_price'); function db_wc_product_price($atts) { if (!function_exists('wc_get_product') ||...

Using Shortcodes in the Background Image URL field

The Divi Theme allows you to add background images to Divi Builder sections, rows and modules. By default, Divi doesn't allow shortcodes in the background image URL field. If you want to use a shortcode to generate your background image URL (or part of it), here's how...

Adding Divi Builder Sections and Modules Using Shortcodes

Do you want to add a Divi Library element, such as a section, row or module into a non-Divi Builder page or into another Divi Builder module? If so, there are several plugins out there which will help you generate a shortcode which you can use to display the Divi...