Skip to main content

Search Divi WooCommerce Extended Documentation

Search for answers or browse our knowledge base.

Print

Divi Library Shortcodes

Overview of the Divi Library Shortcodes extension

The Divi Library Shortcodes extension gives every item in your Divi Library its own shortcode, such as [dwe_divi_shortcode id="339443"]. Paste the shortcode wherever WordPress shortcodes work, and the saved layout, section, row or module is shown there.

This is useful when you want the same content in many places. For example, save a promotion banner once in the Divi Library and show it on several pages, in a product description or in a widget. When you edit the library item, every place that uses its shortcode shows the change.

A Divi Library layout shown with its shortcode
A “Free Shipping Banner” saved in the Divi Library, shown on a page with its shortcode.

How to turn on Divi Library Shortcodes

  1. In your WordPress dashboard, go to Divi Extended → Divi WooCommerce Extended → General.
  2. Switch on Enable Divi Library Shortcodes.
  3. Click Save Changes.
Enable Divi Library Shortcodes setting
The Enable Divi Library Shortcodes toggle in the General tab.
  • Enable Divi Library Shortcodes: Turn this on to use your Divi Library layouts with shortcodes.

How to find the shortcode of a library item

  1. Go to Divi → Divi Library.
  2. Find the layout, section, row or module you want to use. The new Shortcode column shows its shortcode.
  3. Copy the shortcode.
Shortcode column in the Divi Library
The Shortcode column in Divi → Divi Library.

The number in the shortcode is the ID of the library item. It does not change when you edit the item.

How to use the shortcode

Paste the shortcode anywhere shortcodes work. Some examples:

  • In the Divi Visual Builder: add a Text module and paste the shortcode in its Body.
  • In a widget: add a Shortcode or Text widget to a sidebar or footer and paste the shortcode.
  • In a product or post: paste the shortcode in the content or in the WooCommerce product description.
Divi Library shortcode in a Text module
The shortcode pasted in a Text module.

Note: The Visual Builder may show the layout without all of its styling. Click Preview or view the page to see the layout as visitors see it.

Troubleshooting

  • If the shortcode text itself appears on the page, Enable Divi Library Shortcodes is off. Turn it on and save.
  • If nothing appears, check that the ID in the shortcode belongs to a published Divi Library item.
  • Do not put a library item’s shortcode inside the same library item. It would try to show itself again and again.
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents