Joomla! World Conference 2026

Joomla has built-in functionality for embedding videos from, for example, YouTube or Vimeo or any other platform that provides embed codes. You don’t have to install anything for this; all you need is a little preparation.

In this example I’ll show you how to embed a YouTube video in a Joomla 4 article. There's two ways to do this: the super easy way, and the still pretty easy way. Both ways require a bit of preparation first.

Preparation: do this first

To allow you to embed videos in your website, YouTube uses an IFrame or “inline frame”. That is a common way to embed other content within the current HTML document. 

By default, the Joomla editor (TinyMCE) strips IFrame code. So you need to allow that first.

In your backend, head over to System -> Manage -> Plugins

System -> Manage -> Plugins

In the search field on top of the list, type “Tiny” and the search icon. Your search result should now show the TinyMCE editor plugin.

List of plugins

Click on the title to open it.

TinyMCE has three editor sets in Joomla. Set 0 is the most extensive one, used for site administrators and super users. In this example, I want this group to be able to add IFrames, so I’m going to change the settings for Set 0.

Editor profiles for TinyMCE

Scroll down to Prohibited elements. This shows a small list: script,applet,iframe.

Prohibited elements in TinyMCE

Remove “iframe” and save the settings.

Now you’re all set for embedding your first video!

Embedding your YouTube video - the Super Easy Way

In YouTube (or Vimeo or whichever platform you want to embed videos from), click the Share button below the video you want to embed.

Share button in YouTube video

A popup opens. Below the Share buttons, you'll see the url for the video and a copy button.

Click the copy button to copy the url.

Embedding the video in your Joomla article

Create a new article or open the article that is going to have the video in it.

Put your cursor in the exact spot where you want the video to appear.

In the editor toolbar, click Insert. In the dropdown, choose Media.

Insert button, dropdown to choose media

 

You now get a popup. In the top left corner, you see General is selected. Copy the url in the Source box.

In the boxes Width and Height, the dimensions of your video get pre-filled. You can adjust those if you want to.

If you click on Embed (second option on the left, below General), you'll see the embed code has been filled in for you.

The popup closes and you’ll see your video in the editor text area.

Screenshot backend embedded video

 

Embedding your YouTube video - the Still Pretty Easy Way

In YouTube (or Vimeo or whichever platform you want to embed videos from), click the Share button below the video you want to embed.

Share button in YouTube video

A popup opens. Click the embed button (it’s the first one from the left).

Embed button for YouTube

Another popup opens. It shows your video, and in the right part you’ll see the embed code plus a couple of options.

In the right hand corner at the bottom, there’s a Copy option. Click it. The embed code turns blue (bonus tip: if you’re chaos on legs, like me, now is the time to paste it into Notepad or something so you’ll still have it if you get distracted along the way).

YouTube embed code

Embedding the video in your Joomla article

Create a new article or open the article that is going to have the video in it.

Put your cursor in the exact spot where you want the video to appear.

In the editor toolbar, click Insert. In the dropdown, choose Media.

Insert button, dropdown to choose media

 

You now get a popup. In the top left corner, you see General is selected. Right below that, there’s Embed and Advanced. Choose Embed.

The insert/edit media popup with options

The popup changes and you now have a text area you can paste your embed code in. Click the Save in the bottom on the right. 

The popup closes and you’ll see your video in the editor text area.

Screenshot backend embedded video

Last step: save your article

Save your article with the Save button in the top left corner, or the Save & close button right next to it.

If you now check the site on the frontend, the video should be visible.

Screenshot fronted embedded video

That's it, you're all done!




About the author

Before I got my current job as Coordinator Communications & Digital, I ran my own company for 25 years. The first 15 years I was a writer / editor / journalist / writing coach, but then I created my first website with Joomla... and I was hooked. I switched careers and became a website developer. My current job combines these two skills, so that's a win-win 🙂 

Anja's Holopin board

Why I contribute to Joomla

To many people Joomla is just a tool. But if you look a little closer, you'll notice it's much more than that. It's a living system, raised and nourished by a community of volunteers dedicating their time to make it the best CMS ever. Without volunteers, Joomla wouldn't exist. It's not 'just a product'. Everyone who uses Joomla, can do so because someone, somewhere, contributed to it. I want to give back to the community that keeps Joomla alive.

And, probably needless to say: I love being part of that community. 

Contributing to Joomla by volunteering brought me so much: valuable experience, more knowledge and a better understanding of Joomla and its community, and the opportunity to work together with a crowd of lovely people all over the world.

Visit website

Some articles published on the Joomla Community Magazine represent the personal opinion or experience of the Author on the specific topic and might not be aligned to the official position of the Joomla Project

Comments