You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#112800 YouTube video dimension question

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by ant on Thursday, 19 January 2023 16:36 GMT

ant
Hello Ryan
I want to insert a square (YouTube) video in my article. In backend I set 700x700 px dimensions and it looks ok (see the attachment).
In frontend, since the responsive widget is active, it appears instead as a classic horizontal YouTube video: https://www.awand.org/cos-e-awand
What settings should I use to see it square also in frontend?
Thanks.

Attachments

Ryan
What settings should I use to see it square also in frontend?


In the Responsive Widget plugin parameters (System -> Manage -> Plugins), you can set the display to be Full Width (as it is on your site now), or when this option is disabled, the actual size of the video will be used, but will still be responsive.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ant
Thanks.

ant
Hi Ryan, sorry to reopen this question but after I disabled the Full Width in Responsive Widget the iFrame I inserted in another page became a narrow strip, I can't set a height either in percentage or using "auto" or in pixels.

Attachments

Ryan
Do you have Responsive Widgets 1.0.27 installed? - https://github.com/widgetfactory/wf_responsive_widgets/releases

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ant
Yes, 1.0.27

Ryan
Please post a link to the page you are seeing the issue on.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ant
https://www.awand.org/test-iframe

for testing, I have inserted 3 iframe:

width="100%" height="auto"

width="900" height="100%"

width="100%" height="100%"

Ryan
There is no such thing as 100% height on an iframe, unless the container the iframe is in has a set height.

For these iframes, you must set a height value, as they are not media sources (eg: Youtube), where the height can be calculated based on a standard ratio.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ant
Sorry,

now they are

height="700"
height="700px"
height="900px"

but they are a narrow strip still.

Ryan
Please try 1.0.28 - https://github.com/widgetfactory/wf_responsive_widgets/releases/tag/1.0.28

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ant
It's ok, thanks.