Enabling auto play for a YouTube video in Webflow's lightbox can be a challenge since passing parameters through the URL might not always work as intended.
1. Use Embed Element Instead of Lightbox
- Place an Embed element on your page instead of relying on the light box for videos.
- Insert the YouTube iframe code directly, ensuring you add the autoplay=1 parameter within the src URL.
- Example:
https://www.youtube.com/embed/VIDEO_ID?autoplay=1.
2. Modify the Lightbox Embed Code
- If you must use a lightbox, you can try editing the generated embed code.
- Open Custom Code within the Designer.
- Locate the script tied to the lightbox and check if you can manually modify the URL scheme to append autoplay=1.
3. Third-Party Solutions
- Consider third-party plugins or lightbox scripts that allow more flexible parameter settings for embedded videos.
Summary
To enable auto play for YouTube videos in Webflow, you may need to use the Embed element with direct iframe code or modify existing lightbox embed code to include autoplay parameters.