Guides / Platforms / WordPress

Install guide

Add a DreamWidget to WordPress

Where it goesCustom HTML block
What you needSelf-hosted WordPress (wordpress.org) works on any host. On WordPress.com, scripts need the Business plan or higher; lower plans show the code as text.

WordPress runs more of the web than any other system, from one-person blogs to large company sites. A DreamWidget goes into a Custom HTML block, so it sits between your paragraphs and pictures like any other block and works with any theme.

Widgets that work on WordPress

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

  • Logo Showcase: A looping row of logos that keeps scrolling.
  • Video Showcase: YouTube, Vimeo, Twitch and TikTok in one browsable video wall.
  • YouTube Widget: Your YouTube channel or playlists as a gallery, kept current, played on your page.
  • Vimeo Widget: A Vimeo showcase, channel or member page as a gallery, played on your page.
  • TikTok Widget: Your TikTok videos on your site, from your connected account or pasted links, played on your page.
  • Twitch Widget: A Twitch channel's past broadcasts and uploads as a gallery, played on your page.
  • Countdown: A clock to a launch, a sale or a door opening, or an evergreen one per visitor.
  • Instagram feed: Your Instagram posts on your site, as a grid, a mosaic, a row or a list, kept current on their own, under your profile and a button to follow you on Instagram.
  • Showreel: Your photos and videos as a moving reel: cards glide to the center over a soft light ring, and visitors drag, swipe or click to open each one large.

Where they work best on a WordPress site

  • The home page, under the opening section. A row of client or press logos right under your headline is the first proof a visitor sees.
  • An about or work page. A video gallery of your talks, tutorials or product demos keeps people on the page instead of sending them to YouTube.
  • A sidebar or footer widget area. Most themes have one. Add a Custom HTML block there to show the widget on every post.

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 page. In your dashboard go to Pages, open the page and click where the widget should go.
  2. Add a Custom HTML block. Press the + button, search for "Custom HTML" and add the block.
  3. Paste and update. Paste your DreamWidget code into the block and press Update. Preview shows the code, the live page shows the widget.
Or our plugin. The DreamWidget plugin is in the WordPress plugin directory: open Plugins, Add New, search DreamWidget, then install and activate it. It adds a DreamWidget block: paste your widget's id (the part after w= in the code) and pick its kind (Logo Showcase, Video Showcase, Showreel, Popup, Instagram feed or Countdown; the YouTube, Vimeo, TikTok and Twitch widgets use Video Showcase), and it draws on the page and in the editor's preview. If your site cannot reach the directory, download the plugin as a zip and add it from Plugins, Add New, Upload Plugin.

The popup on every page

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

  1. Use a footer code plugin. Install a plugin that adds code to every page, such as WPCode, and create a new snippet set to "Site Wide Footer".
  2. Paste and activate. Paste the code, set the snippet to active and save.

If it does not show up

  1. The block shows the code as text. You are on WordPress.com below the Business plan, which strips scripts. Upgrade, or use a self-hosted site.
  2. The preview shows code, not the widget. That is normal in the editor. Open the published page to see the widget draw.
  3. Your editor has no blocks. The Classic editor has no Custom HTML block. Switch the editor to its Text tab and paste the code there.
  4. A caching or speed plugin hides it. Plugins that delay scripts until a visitor scrolls or clicks (WP Rocket, Autoptimize and others) can hold the widget's short script back. Add the word dreamwidget to the plugin's list of scripts not to delay.

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 WordPress by themselves; you never paste the code again.

Other platforms