Guides / Platforms / Drupal

Install guide

Add a DreamWidget to Drupal

Where it goesCustom block
What you needWorks on Drupal 9, 10 and 11 with a text format that allows scripts (Full HTML).

First, copy your code. In the DreamWidget editor, open Settings and press Copy embed code. It is one iframe and a short script; paste both.

Add a widget to a page

  1. Add a custom blockGo to Structure, then Block layout, then "Add content block".
  2. Paste in Source modeChoose the Full HTML text format, switch to Source, paste your DreamWidget code and save.
  3. Place the blockPlace it in a region and limit it to the pages you want.

A popup, bar or chat buttons on every page

Floating widgets do not need a spot in the layout; they load once per page and float over it.

  1. Place it site-widePlace the same block in the footer region with no page restriction.
Worth knowing: Basic HTML strips scripts; the block must use Full HTML.

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 publish in the editor appear on Drupal by themselves; you never paste the code again.

Other platforms