How to Add a Before and After Gallery to Any Website Platform
Squarespace, Webflow, Wix, WordPress, or something custom? Here's how to add a before and after gallery to each, and what to check before you start.
By the founder of Proova
Proova's founder has spent years building websites for plastic surgery practices and med spas.
Most advice about before and after galleries assumes you're on WordPress. Plenty of practices aren't.
If your site runs on Squarespace, Webflow, Wix, or a custom build, you can still add a good gallery. The steps differ a little for each platform, and a few quirks are worth knowing before you start.
This page is a map. It shows how each platform handles gallery code and points you to the full guide.
The short answer
On any platform that lets you add a code snippet or an HTML embed to a page, you can add an embed-based gallery. You paste the code once, and cases you add later show up automatically. The details that change from platform to platform are which plan you need, where the code goes, and whether the gallery sits directly in the page or in a frame.
Two ways to add a gallery
A plugin is software you install inside your website. It's tied to the platform it was built for, and most plugins are built for WordPress.
An embed is a gallery that lives in its own system. You paste one snippet into your site, and the gallery appears where you put it. Because it isn't installed inside the site, it can work on platforms that don't have a plugin store.
Proova works as an embed. If you're weighing the two approaches for a WordPress site, our comparison of plugins and script embeds goes through the tradeoffs.
Platform by platform
| Platform | How you add the code | What to know |
|---|---|---|
| Squarespace | A code block on the page | Code blocks work on every Squarespace plan |
| Webflow | An Embed element | Custom code requires a paid Webflow site plan |
| Wix | An Embed HTML element | Wix puts embedded code in a sandboxed frame, so test sizing carefully |
| WordPress | A plugin, or an embed in a custom HTML block | Both work. Choose based on how you plan to maintain the site |
| Other builders and custom sites | A script tag or HTML embed block | Check your plan and test on a phone |
Squarespace
Squarespace doesn't have a native before and after gallery. You add the gallery code to a page and publish. Our Squarespace guide walks through it step by step.
Webflow
Webflow has no built-in gallery with before and after sliders or filtering. You drop an Embed element onto the page, paste your snippet, and publish. Custom code needs a paid site plan, and script-based embeds usually need a published or staging page to preview. Our Webflow guide covers the options and the setup.
Wix
Wix handles embedded code differently. The Embed HTML element is a sandboxed frame, and Wix says the code inside can't reach the rest of the page. If the content is taller than the frame, it's cut off. That doesn't rule out a gallery, but it means you have to size the box and test it on desktop and mobile. Our Wix guide shows what to watch for.
WordPress
WordPress has the most gallery plugins, and an embed also works. A plugin runs inside your site, and an embed runs from outside it. Our comparison helps you pick.
Everything else
Shopify, Framer, GoDaddy, Showit, and custom builds all handle code differently. The rule of thumb is the same. If the platform lets you add a script or an HTML block to a page, an embed-based gallery is possible. Check three things first: whether your plan allows custom code, whether the code runs in the page or in a frame, and how the result looks on a phone.
Before you start, on any platform
- Check your plan. Some builders only allow custom code on paid plans.
- Find out if the code runs in a frame. If it does, plan for a fixed-size box, and test both desktop and mobile.
- Decide who adds cases. The best setup lets your front desk add a case without opening the website. Our post on keeping a gallery updated covers a simple weekly routine.
- Have your patient permission in order. Every photo needs a signed authorization that covers your website. Our consent guide explains how.
- Know where the photos live. A website's media library is built for public images. Our post on where to store patient photos compares your options.
- Test on a real phone. Check that the slider responds to a swipe, the filters fit, and the consultation button works.
Where to put the gallery once it's installed
Adding the code is the easy part. Where you put it matters just as much. Most practices do best with two spots: a main gallery page that patients can reach from the menu, and results on each procedure page. Our guide to building a before and after page for each procedure covers the second part.
Frequently asked questions
Can I add a before and after gallery if I'm not on WordPress? Yes. Embed-based galleries work on builders like Squarespace, Webflow, and Wix, as long as you can add a code snippet or HTML block to a page.
Do I need a developer? Usually not. Pasting a snippet into a code block or embed element is a few minutes of work. A developer helps most on custom sites or when the layout needs adjusting.
What if my platform doesn't allow custom code? You'll need to either upgrade to a plan that does, or look at a different approach. Check your platform's current plan rules, since they change.
Will the gallery slow my site down? Any added content has some effect. Test your page speed before and after, and check on a phone.
Does it work on mobile? It should. Always test on a real phone before you send patients to the page.
Not sure your platform will work? Start free with Proova. One case is free, and you can see it on your own site before you decide anything.
Ready to try proova?
Start free — 1 case, no credit card. Be live on your website in under an hour.
Start free — no card required