Elxis CMS Forum
Extensions => Bots and plugins => Topic started by: armpouniotis on February 09, 2017, 16:30:34
-
Hi there !
I am inserting:
{youtube width="440" height="360"}kzFmEZt_Gyw{/youtube}
but unfortunately, video is not resized.....
What's wrong ?
thank you in advance
Christos
-
Nothing is wrong!
Set the Default width through: Extensions > Content plugins > YouTube video > Parameters
and in your content use only: {youtube}Video_ID{/youtube}
* Height is calculated automatically from width based on aspect ratio 16:9
-
Since Elxis 4.5 rev1909 (released a few days ago) YouTube videos are been displayed with 100% width and the height is auto calculated based on the 16:9 aspect ratio. This means that youtube videos are now responsive and width/height options are now deprecated and not used. If you want to change video dimensions you can do it from CSS. The same for the map plugin. Related announcement (https://forum.elxis.org/index.php?topic=8707.msg56251#msg56251).
So, to answer your question: update to Elxis latest release and you will have responsive youtube videos!
-
So, to answer your question: update to Elxis latest release and you will have responsive youtube videos!
Good to know!
-
Hi there,
in the CSS file I am writing:
div.elx_ytvideo{
height: 100px;
width: 360px;}
Unfortunately, "height" attribute is not working.....
What should I do ???
-
First make sure you have the latest Elxis installed (rev1909), then see how to style video by looking at standard.css file in template system.
-
Hi there !
now I see how I can resize it !
That's really helpful !
Thank you !!!