-
-
Hi.
We are using the video player widget to embed a youtube video but the thing is after the video ends, I don’t want it to display the list of related videos. In order to do this, we need to insert a
&rel=0
to the end of the iframesrc
tag.Is there a way to achieve this?
-
Hello,
What widget have you used?
Where have you added the video?Best regards!
-
Hi Ruco,
We used the “Video player” widget. It plays a video from youtube. The thing is, by default related videos are shown at the end. But we don’t want this. So youtube asks us to add a
&rel=0
to the end of the iframesrc
tag for this. This doesn’t seem to be possible with the video player widget.The question is how to achieve this. Hope the question is clear?
-
Hello,
The theme doesn’t have any video widget. have you installed a plugin for that?
Let us know.Ps. We don’t offer support for third arty plugins.
Best regards!
-
Hi,
You can use the RAW HTML widget to include the iframe from YouTube with the parameters that you require.That works but you then end up with a non-responsive video because the iframe uses a fixed size.
The way around this is to use the technique mentioned here:
https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php
Put your YouTube iframe within the div as mentioned in iframe section e.g., this is entered into the RAW HTML widget.
<div class="videoWrapper"> <iframe width="560" height="349" src="https://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe> </div>
Then add the css to the page via the cog at the top:
.videoWrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; } .videoWrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
The site mentions how to manage the aspect ratio, it worked for me.
Regards Alan
-
Sorry for the extra html, my reply looked great in the editor but the forum doesn’t display it correctly and I can’t see a way to edit it?
-
Hello,
Thank you for the information. To make the code understandable, please make sure to include it inside the <code> tags. If you go to the ‘text’ tab of text editor, instead of the ‘Visual’ you will see it in the option bar.
I edited this one for you.
Best regards!
-
You must be logged in to reply to this topic.