Is there a way to disable related videos from showing up after a video stops playing when using the YouTube media?
Hey shirtandsimple!
I haven’t tested it out yet but try adding a “?rel=0” to the end of your youtube URL. If your using the av_video shortcode I’m not sure if it’s going to work. You can click on the embed button when viewing the video on youtube and copy the code to use and paste it inside your page content instead.
Cheers!
Elliott
Hey
I have been able to prevent related videos but using the embed code and adding ?rel=0 However the result does not respond properly and when vid is playing large black areas appear above and below video on a phone or other smaller screens, and on big screens the sides. Can I fix that?
I have this in a code block. Text block has same results:
<iframe width=”1120″ height=”630″ src=”https://www.youtube.com/embed/UirpKCkfWBU?rel=0″ frameborder=”0″ allowfullscreen></iframe>
If I set width to 100% it fixes the problem but causes another because I can’t figure out how to set the height.
here is the page in question:
https://missionbaybeachcondo.com/mission-beach-vacation-rental-pictures/
Thanks, Rob
Hey!
Please try using this plugin – https://wordpress.org/plugins/hide-youtube-related-videos/ and insert your video using Video element under Media elements tab of Advanced Layout Builder
Regards,
Yigit
That works but it took you 21 minutes to get back to me, gotta work on that. BTW I have recently been obligated to make 2 websites with some other well-known themes. Quite a relief to get back to working with Enfold
Thanks
Rob