Does the $rel=0 parameter to prevent Youtube from showing related videos in a lightbox still work in Webflow?

Published on
September 22, 2023

Yes, the $rel=0 parameter to prevent YouTube from showing related videos in a lightbox still works in Webflow.

By default, when you embed a YouTube video in Webflow using the built-in Video element, it will display related videos once the video has finished playing. However, you can prevent this behavior by adding the $rel=0 parameter to the YouTube video URL.

To add the $rel=0 parameter in Webflow, follow these steps:

  1. Add a Video element to your Webflow project by dragging and dropping it onto the desired page.
  2. Double-click on the Video element to open the settings panel.
  3. In the Video URL field, paste the YouTube video URL you want to embed.
  4. Append the $rel=0 parameter to the end of the YouTube video URL. For example, if your original URL is https://www.youtube.com/watch?v=abcdefg, the modified URL with the $rel=0 parameter would be https://www.youtube.com/watch?v=abcdefg&rel=0.
  5. Once you have added the $rel=0 parameter, the Video element in Webflow will no longer display related videos after the embedded YouTube video has finished playing.

Keep in mind that the $rel=0 parameter only works for YouTube videos embedded using the Video element in Webflow. If you are manually adding YouTube embed codes to your project, you will need to add the $rel=0 parameter directly to the YouTube iframe code.

Overall, utilizing the $rel=0 parameter helps maintain control over the content displayed after a YouTube video finishes playing, ensuring a more focused user experience.

Additional Resources:

Quesitons:

  1. Can I prevent YouTube from showing related videos in a Webflow lightbox?
  2. How can I disable the display of related videos in my embedded YouTube videos in Webflow?
  3. What parameter should I use to prevent related videos from showing after a YouTube video finishes playing in Webflow?