Guides / Platforms / Divi

Install guide

Add a DreamWidget to Divi

Where it goesCode module
What you needWorks with any Divi license, on any WordPress host.

Divi is the visual builder from Elegant Themes, used on a large share of WordPress business sites. Its Code module holds a DreamWidget the same way it holds any other module, inside the row and column you choose.

Widgets that work on Divi

Every DreamWidget below works on Divi, with the same steps.

Logo Showcase, Video Showcase, YouTube Widget, Vimeo Widget, TikTok Widget, Twitch Widget, Countdown, Instagram feed, Showreel.

Add a widget to a page

First, copy your code. In the DreamWidget editor, press Publish changes, then Copy code in the window that says your widget is live. The same code is in Settings, under Copy embed code. It is one short code; paste all of it, as copied.

  1. Open the Visual Builder. Open the page with the Divi Visual Builder.
  2. Add a Code module. Click the grey + in a row and choose the Code module.
  3. Paste and save. Paste your DreamWidget code into the Code field, close the module and save the page.

The popup on every page

These float over the page instead of taking a spot in it, so they load once per page.

  1. Open Theme Options. In WordPress go to Divi, then Theme Options, then the Integration tab.
  2. Paste in the body code. Make sure "Enable body code" is on, paste the code into "Add code to the < body >" and save.

If it does not show up

  1. The code shows on the page as text. It went into a text block. Delete it and paste it into the Code module instead, the whole code as copied.
  2. The box is empty while you edit. Many editors do not run embedded code on the editing canvas. Preview the page, or open the published page, where it draws.
  3. Nothing shows on the live page. Publish the Divi page after pasting, and in DreamWidget press Publish changes so the widget itself is live. Then open the page in a private window.
  4. The bottom of the widget is cut off. If Divi gives the embed a fixed height, make it taller until the whole widget shows, then check the phone view.
  5. It showed before and now it does not. A widget on the free plan shows 300 times a month and then pauses until the 1st; the dashboard says so on its card. Any paid plan has no view limit.
Worth knowing: If the Code module shows the code as text, check that it went into the Code module and not a Text module.

Check it worked

Open the published page in a private window. The widget draws within a second; if the box is empty, see Checking it worked. Changes you make in the DreamWidget editor reach Divi by themselves; you never paste the code again.

Other platforms