Before/After Slider widget

WordPress embed guide

How to Add a Before/After Slider to a WordPress Site.

You do not need a plugin to put a Before/After Slider on a WordPress site. WordPress's Custom HTML block accepts embed snippets directly, which keeps your plugin list short and your site faster than installing a single-purpose widget plugin.

Live starter preview

Step by step

Embed the Before/After Slider in your WordPress site.

01

Create the widget in Fugte

Start from the Before/After Slider starter, generate a variation with the built-in AI, or paste your own code.

02

Customize and publish it in Fugte

Text, colors, images, numbers, and options are no-code settings, so you can match your branding without touching code. Publishing gives the Before/After Slider a stable hosted link and an embed snippet.

03

Add a Custom HTML block

In the WordPress block editor, add a "Custom HTML" block where the widget should appear and paste the embed snippet.

04

Preview and publish

Use the block's Preview toggle to check the Before/After Slider in place, then publish or update the page.

Good to know

WordPress specifics worth planning around.

Works the same in the classic editor (paste into the Text tab) and in page builders: Elementor's HTML widget, Divi's Code module, and similar.

Self-hosted WordPress accepts the embed on any setup. On WordPress.com specifically, custom embeds require a plan that allows custom code.

No plugin means one less thing to update, and theme changes or updates will not break the widget.

Updates happen in the widget editor. The embedded widget changes everywhere it is placed, without re-editing posts.

Ideas

Where the Before/After Slider fits.

Portfolios

Interactive before/after comparison for visual transformations.

Showcases

Interactive before/after comparison for visual transformations.

Visual pages

Interactive before/after comparison for visual transformations.

FAQ

Common questions.

Do I need to install a plugin?

No. The built-in Custom HTML block is enough. That is the main advantage over widget plugins, which add code to every page whether used or not.

Can I use the Before/After Slider with Elementor or Divi?

Yes. Paste the same embed snippet into Elementor's HTML widget or Divi's Code module. Any builder with an HTML element works.

Will a theme update break the Before/After Slider?

No. The embed lives in your page content, not in theme files, so switching or updating themes leaves it in place.

Try it

Put a Before/After Slider on your WordPress site today.

Start free, customize the Before/After Slider without code, and embed it with one link.