Jump to content

(Pages) YouTube Field

Featured Replies

Posted

Hi,

I am trying to define the width of YouTube player added via the field YouTube. I have added both parameters: width and height. But they are ignored and the video is displayed in the full width:

screenshot-2020_04.10-19_33_18.png.35ff1b1608aeee60685f56545a8039ac.png

All other parameters work. Only width and height is ignored. In the source code of the page I see:

<div class="ipsEmbeddedVideo" contenteditable="false"><div><iframe id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/VIDEO_ID?width=640&amp;height=360&amp;hl=de&amp;modestbranding=1&amp;rel=0"></iframe></div></div>

Does somebody knows why parameters are ignored?

Thank you!

  • Author

I have figured it out. The width and height seems to be overwritten by global JS. Changing global setting:

screenshot-2020_04.10-20_32_31.png.c0f64e076257090486bd1c57eb5fd5de.png

"solves" the issue. At the same time you cannot have different width in posts and YouTube fields in Pages.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.