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.
Create the gallery in Elfsight, paste the code into your AI-built site.
Try Elfsight Video Gallery →Frequently asked questions
Can I add a YouTube gallery to a Lovable or v0 site?
Yes. Paste the Video Gallery installation code into the page or ask the builder to add it.
Will the builder overwrite it?
Keep the embed in its own component or section and tell the builder not to change it.