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

Open / Close All Accordion Toggles with the Click of a Button.

The Divi Accordion module doesn't come with a way to open / close all accordion toggles at once. Here's how to add a Divi Button module which will do just that. Step 1: Add a Button Module Begin by adding a button module to your layout. This will be the button that we...

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

Disable WooCommerce Marketplace Suggestions

WooCommerce shows suggestions for products from its marketplace, within the WordPress admin area. If you'd like to disable these Marketplace Suggestions, here are several ways to do so. Disable Marketplace Suggestions from the WooCommerce Settings The Marketplace...

Change the Post Content Module Background Color

The Post Content module introduced by Divi 4.0 is a placeholder for the main content layout, within a theme builder template. It comes with a convenient option to set its background color / image. However, you might find that your chosen background doesn't show,...