You are not limited to using videos in posts and pages. You can also add video content to widgets or comments. WordPress provides a special video shortcode you can use that includes options for configuring things such as height, width, alignment, and only showing a portion of a video. Learn where to find a reference of this information.
- Next let's take a look at adding a video via a widget. Going back to my site, I'm gonna click this customize button next to themes. This brings up what is known as the Theme Customizer which I'll cover in detail later. But for now, let's click on widgets. That will bring up any available widget areas in the theme. And yes, the widget areas you have available here will differ from theme to theme. In the case of the 2015 theme, my only widget area is in the sidebar. Right now, all it has in it is a search widget.
I'm gonna go to add a widget and search widgets for what's called a text widget, and here, I can put in the embed short code and see a preview of my video in the sidebar. By the way, when it comes to this text widget in videos, you need to use the embed short code. You can't just paste the link in like I showed you earlier on the post. If I want to save that, I need to click save and publish. But since that's an example, I'm just gonna go ahead and exit out. Before we move on, let me show you the other place you can use videos in your site.
In the comments, admittedly this is probably the least common place you'd add a video but it's possible so let's take a look. I'm gonna look at my site from the front end by clicking this home icon by my site URL. From there, I'll find the post that I'd like to comment on. Once I'm in the comment area, I can either paste in the URL or use short code to include the video. Note that if you're leaving a comment on someone else's website and they have comment moderation turned on, you may have to wait until your comment is approved before you can see it.
So as you can see, WordPress makes it really simple to work with videos. No yucky Iframes or fancy scripts. Just drop the videos in by URL or short code and you're ready to go. I just showed you YouTube as an example here but for a full list of supported video services and instructions on how to work with each one, check out this page in the WordPress.com support docs.
- Creating a WordPress.com account
- Updating your profile
- Importing content
- Publishing posts
- Applying categories and tags to posts
- Inserting images, videos, and other media
- Creating a new page
- Customizing your site with themes and widgets
- Managing users, notifications, and comments
- Using WordPress.com apps
- The limits of WordPress.com and the benefits of self-hosting