I am trying to embed some Youtube videos on pages with the Royal Theme. I would like to stop the videos from displaying the next Youtube video when it has finished playing.
The Youtube embed code allows you to turn off the next video feature. However, the WPbakery video player will only allow you to input the address of the Youtube video. So the iframe code used for turning off the next video feature cannot be used.
I tried to get around this by putting the full Youtube iframe code into the WPBakery text block. This worked fine, but the iframe code forces a specific width and height on the video. I would like the video to be the same width as the WPbakery column into which it has been inserted.
I tried changing the width and height settings in the iframe to width=”100%” height=”100%”. This made the video the correct width, but the height of the video is cropped to about a 5th of its correct height.
Would you know if there’s a way that I can insert the full Youtube iframe settings into my Royal WPbakery page, while also allowing the video to have a responsive width that alos displays the correct height?
In this page the video at the end was inserted using the WPBakery videoplayer element. The WPBakery videoplayer element only allows you to input the Youtube video address. It doesn’t allow you to put in the full Youtube embed code. As a result it’s not possible to turn off the suggested next video feature that appears at the end of the video: https://www.gillopticians.ie/mykita/
In this alternative version of the page, instead of using the WPBakery videoplayer I used the WPBakery text block. This allowed me to input the full YouTube embed code which turns off the next video feature. The problem with this, is that it forces the video to be a specific width and height. In order to make the video the same width as the column it is in, I set it to width=”100%” height=”100%”, but this causes the height of the video to collapse: https://www.gillopticians.ie/eyewear_mykita_alt/
Would you know a way of making the video be 100% width but have its height be in the correct proportions?
I have put the login details into the Private content part of the post.
Site URL: hidden Theme version: Royal Theme
Content is visible for topic creator and support staff only.