How to add video components to your CMS pages
In this guide, we explain how to add videos to CMS detail pages in Framer and customize their visibility dynamically using CMS variables and conditionals.
Options for adding a video
YouTube component
Vimeo component
Self-hosted video
Uploaded video
Adding a YouTube, Vimeo, or self-hosted video
Create a “Video URL” field:
Add a “Plain text” field to your CMS collection and label it “Video URL”.
Add video URLs:
Populate the “Video URL” field with the desired video links. Leave blank spaces for items without videos.
Insert a video component:
On the Canvas detail page, open the Insert menu. Add a YouTube, Vimeo, or Video component.
Click the “+” button next to the URL field, select Set Variable, and choose “Video URL” from your CMS fields.
Uploading a video directly in the CMS
Add a “File” field:
In the CMS collection, add a “File” field to allow uploads for file formats like mp4.
Upload your video file:
Upload your local video file to the CMS. Note that upload size limitations apply.
Insert a video component:
On the Canvas detail page, add a Video component from the Insert menu.
Select “Upload” as the Source. Click the “+” button to add Variables, select Set Variable, and choose “File” from your CMS field.
Hide empty fields where needed
For items without a video, use Conditionals to hide the empty space:
In the Styles panel, go to Visible > Set Variable > File > Is set.
This condition ensures the video space is visible only when a video file is present, keeping your layouts clean.
Still experiencing the issue after following the steps above? Create a support ticket in the Community.