Home
/
Other Applications
/
How to insert YouTube video in Joomla! 3.x?

How to insert YouTube video in Joomla! 3.x?

There are several ways to insert YouTube video in Joomla! 3.x. Expert web developers tend to prefer inserting the video link directly in the articles source code. To do so, enter the Joomla! 3.x administrator area. Then go to the articles edit section and in the desired article click Source at the WYSIWYG editor. The source code that you need to enter will look like this:

<div align="center"; margin-right: 10px; margin-bottom: 10px;">
<object height="258" width="321"><param value="http://www.youtube.com/VIDEO PATH" name="movie"><param value="true" name="allowFullScreen"><param value="always" name="allowscriptaccess"><embed height="258" width="321" allowfullscreen="true" allowscriptaccess="always" type="application/x-shockwave-flash" src="http://www.youtube.com/VIDEO PATH"></object>
</div>

Note that you should replace http://www.youtube.com/VIDEO PATH with your video file URL. Note also that various options in the source can be altered according to your needs. You might want to align the video left or right, possibly alter the margin size, disallow fullscreen and adjust width and height according to the movie parameters.

The alternative to directly inserting YouTube videos in the source code is using an additional Joomla! 3.x extension for this task. Various modules, components, and plugins can be found on the official Joomla! 3.x extensions website. You can check them out and find the one that best fulfills the needs of your Joomla! 3.x YouTube website.

Share This Article