How-to guide

How to add a before and after slider to WordPress

Renovations, photo edits, garden makeovers, dental work: put the two photos on top of each other and let readers drag the handle across.

  • One-time payment
  • Made for WordPress
  • Live in about 5 minutes
Before/After Slider: How to add a before and after slider to WordPressTry it live ↓

Try Before/After Slider right here

Drag the handle across the picture. With the keyboard, Tab to it and use the arrow keys.

BeforeAfter

Readers drag with a finger or a mouse, or use the arrow keys

Uses the photos in your post and sizes itself on every screen

Works with any theme and any page builder

How to add it to WordPress

Buy once, add your website in Fluri and pick Before/After Slider. You get one line of code like this:

<script defer src="https://fluri.xyz/install/loader.js"
  data-site="your-site-key"></script>

After that, change settings, pause it or switch themes from your dashboard. You never edit your site again.

  1. In WordPress, go to Plugins → Add New and install a header and footer code plugin such as WPCode.
  2. Open Code Snippets → Add Snippet → Add Your Custom Code, and choose HTML snippet.
  3. Paste your Fluri snippet, set Location to Site Wide Footer and switch the snippet to Active.
  4. Save, open your website and press Check installation in your Fluri dashboard.

On a classic theme you can instead paste the snippet just before </body> in your theme’s footer.php (use a child theme so updates don’t remove it). Full WordPress guide

Questions

Something else? Send us a message.

Do I need an image comparison plugin for WordPress?

No. You paste one script tag into your site footer once, with a header and footer code plugin such as WPCode. Then you choose which photo pairs become sliders.

Does it work in the block editor and Elementor?

Yes. Any block that holds a before photo followed by an after photo can become a slider.

Is it accessible?

Yes. The handle can be moved with the arrow keys and is announced as a slider.

How much does it cost?

$19 once, with no subscription. That includes Before/After Slider and all 65 other themes, on as many websites as you like.

Give your website a little life today.

Pick a theme, pay once, paste one line. It’s live in minutes.