Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: armpouniotis on February 09, 2017, 16:30:34

Title: Youtube plugin resize problem....
Post 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
Title: Re: Youtube plugin resize problem....
Post by: rentasite on February 09, 2017, 19:59:04

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
Title: Re: Youtube plugin resize problem....
Post by: datahell on February 09, 2017, 22:58:26
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!
Title: Re: Youtube plugin resize problem....
Post by: rentasite on February 09, 2017, 23:16:54
So, to answer your question: update to Elxis latest release and you will have responsive youtube videos!

Good to know!
Title: Re: Youtube plugin resize problem....
Post by: armpouniotis on February 09, 2017, 23:48:52
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 ???

Title: Re: Youtube plugin resize problem....
Post by: datahell on February 10, 2017, 11:23:13
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.
Title: Re: Youtube plugin resize problem....
Post by: armpouniotis on February 11, 2017, 11:13:48
Hi there !

now I see how I can resize it !

That's really helpful !

Thank you !!!