YouTube Embed Options In SP Page Builder Modal Popup - Question | JoomShaper
🎃 Halloween Sale is Live! Get 35% OFF on all plans. Sale ends soon! Get Offer

YouTube Embed Options In SP Page Builder Modal Popup

K

kroptodi

SP Page Builder 4 months ago

Dear support team,

We are using the Modal Popup element within SP Page Builder to display a YouTube video. The content type is set to “Video”, and the video URL we are currently using is:

https://www.youtube.com/watch?v=c3myyjWm7ds

This works well, but the issue is that at the end of the video, YouTube shows related videos—including those from competitors. We would like to disable these.

We understand that using the embed format with ?rel=0 (e.g., https://www.youtube.com/embed/VIDEO_ID?rel=0) would limit related videos to only those from the same channel. However, when we try to use this format in the Modal Popup, it throws an error.

Additionally, we would like to have the option to loop the video, but there is no setting available for this in the current configuration.

Could you please advise us on how to achieve the following within the Modal Popup element?

  1. Prevent related videos from showing (or restrict them to the same channel)
  2. Enable video looping

Thank you in advance for your support.

Best regards, Mark Jongejan Emogy

0
2 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 months ago #195016

Hi Mark,

  1. By default is not possible to add that, you have to customize addon code (site.php) - and that is task 4 you.

components\com_sppagebuilder\addons\modal\site.php

Basic guide: https://www.joomshaper.com/documentation/sp-page-builder/how-to-override-sp-builder-addons

  1. About YT clip loop - you have to add also &loop=1 || Note! This parameter has limited support in IFrame embeds.
0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 months ago #195035

ad 1) Important note:

info_2905_2025.gif

Source: https://developers.google.com/youtube/player_parameters#release_notes_08_23_2018


But we can consider adding that parameter in upcoming updates as default.

0