IMPORTANT MESSAGE REGARDING THE FORUM

As you may already know, the JoomlaWorks Forum is powered by Kunena (the only decent forum component for Joomla).

Unfortunately, the latest update for Kunena has seemingly broken all code snippets (old and new) in the forum.

Until this message is removed, please paste any code as regular text - in other words, don't use the [code]...[/code] tags in Kunena's post editor.

Keyword

youtube video size not working

  • Pascal Fauchard
  • Pascal Fauchard's Avatar Topic Author
  • Offline
  • New Member
More
1 year 2 months ago #176441 by Pascal Fauchard
youtube video size not working was created by Pascal Fauchard
Hi,
Whatever the size I set, the plugin does not take it in account.
What is my mistake?

{youtube}rNM8KiOv0pI|300|152|1{/youtube}

Thank you.

Please Log in or Create an account to join the conversation.

More
1 year 2 months ago #176443 by Fotis
Replied by Fotis on topic youtube video size not working
AllVideos installs with the Responsive template enabled by default. This means the player will always occupy all available page width.

To use fixed dimensions, simply choose one of the other templates in AllVideos' plugin parameters.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #178467 by Railer
Replied by Railer on topic youtube video size not working
Hi Fotis -- Is there a way when using the Responsive template, to put the video in a fixed width (426px) container such that it restricts the video width to the container width from desktop to tablet, and then when viewed on a smartphone it would scale down to fit the phone display size?

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #178468 by Fotis
Replied by Fotis on topic youtube video size not working
The player will always respect its container's dimensions. So if your container is 426px then the player will use that width as well. If you don't see such a behaviour, your template's CSS may be interfering with the plugin's CSS.

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #178502 by Railer
Replied by Railer on topic youtube video size not working
For my issue, I enclosed each video snippet with a <div class="video-container"> ... </div> and added the following
css in my custom.css file:

.video-container { max-width: 426px !important; margin: auto; }

It worked!

Please Log in or Create an account to join the conversation.

More
5 months 3 weeks ago #178506 by Fotis
Replied by Fotis on topic youtube video size not working
It's more effective if you create an override for AllVideos (see the MVC templating section here www.joomlaworks.net/support/docs/allvideos) and add the container there. If you are to insert HTML code on every video you add, it kills the point of using a plugin...

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum