• Priority: 0
  • Status: Closed
  • Theme: Alysum
  • Assigned To: Fred
  • Private: No
  • Open Date: 23.11.20, 18:55
  • Opened by: Corentin POSTIC
  • Closed by: Fred
  • Closed on: 07.12.20, 15:06
  • Reason: Closed
  • Comment: Glad to help!

Ticket #19945 - Page builder - Youtube - rel=0

Hello,

I would like to add the parameter rel=0 to my iframe but when I set it on the video URL: https://www.youtube.com/watch?v=PT0k7wJ9cbk&rel=0 The generator keeps only the video id.
Is there a way to specify that I want rel=0 to avoid having related videos from other channels than mine ?

Thanks

Comments

Fred 24 Nov 2020, 10:53

Open the file /modules/pspagebuilder/views/js/pagebuilder.js
find the line

iframe.setAttribute("frameborder", "0");

add a new line below

iframe.setAttribute("rel", "0");