Guide

How to add a video gallery to a site built with AI (Lovable, v0, Bolt, Base44, Replit)

Updated September 2026 · 5 min read

Ask the builder to add it

Copy the installation code from Elfsight and prompt: “Add this embed code to the page, in a full-width section below the hero. Load the script once.” Most AI builders place it correctly.

Or add it by hand

Open the generated page component and place the widget element where the gallery should appear; load the script once for the whole app. See our React and Next.js pages.

Why a widget instead of AI-generated gallery code

  • Galleries from YouTube, TikTok or Instagram need APIs and keys the builder can’t set up for you.

  • The widget updates automatically when you publish new videos.

  • You edit videos and design without regenerating the site.

Frequently asked questions

Related