Set Divi Image Module Image from a Shortcode

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...

Using Shortcodes in the Button Module

Divi Shortcode Enabler allows shortcodes to be used in various Divi modules, including the button module. Currently, Divi Shortcode Enabler supports using URLs in the following button module fields: * Button text * Button Link URL Using shortcodes in the Button text...