Thursday, February 2, 2023

How to Embed a Facebook Video in WordPress

Do you want to embed a Facebook video in WordPress?

The videos that you post to Facebook also make great content for your website. By embedding a Facebook video feed, you can keep your site fresh and interesting while also growing your Facebook following.

In this article, we’ll show you an easy way to embed Facebook videos in WordPress.

How to embed a Facebook video in WordPress

Why Add Facebook Videos in WordPress?

Videos are a great way to connect with your audience and keep them engaged. This is true no matter whether you’re running a personal blog or a business website.

However, videos are particularly powerful if you want to make money online blogging with WordPress. In fact, 88% of people have bought a product or service after watching a video according to the latest blogging statistics.

Creating engaging and entertaining videos takes time and effort so if you’re posting videos to Facebook, then it makes sense to re-use them on your WordPress website.

By linking your website to your Facebook account, any new videos that you post to Facebook will appear on your website automatically. In this way, you can keep your website fresh with very little day-to-day effort.

Embedded videos can even help grow your Facebook page. If website visitors see lots of interesting videos and playlists then they’ll want to follow you on Facebook. This can get you some extra followers and more engagement.

With that being said, let’s see how you can easily embed a Facebook video in WordPress.

Installing a Facebook Video Plugin in WordPress

The easiest way to embed a Facebook video in WordPress is by using the Custom Facebook Feed Pro plugin.

It’s the best social media feeds plugin and lets you easily embed Facebook albums, comments, reviews, community posts, videos, and more on your WordPress website.

A Facebook video feed, created using Smash Balloon

In this guide, we’ll be using the pro version of Smash Balloon as it allows you to embed videos in WordPress including HD, 360o, and Facebook Live videos.

Smash Balloon Pro also lets you show photos in a custom Facebook feed, and display the total number of likes, shares, comments, and reactions below each post. However, if you’re just starting out and have a limited budget, then there’s also a free version you can use.

First, install and activate the Custom Facebook Feed Pro plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.

Upon activation, head over to Facebook Feed » Settings and enter your license key into the ‘License Key’ field.

Adding your Smash Ballon license in WordPress

You’ll find this information under your account on the Smash Balloon website.

After entering the key, click on the ‘Activate’ button.

Connect Your Facebook Page or Group to WordPress

Smash Balloon Custom Facebook Feed allows you to embed videos from Facebook pages and groups. You can even show the videos in a lightbox popup so people can watch the full video directly on your WordPress website.

The first step is connecting your Facebook page or group to WordPress, so go to Facebook Feed » All Feeds and then click on ‘Add New.’

How to embed Facebook videos in WordPress

Smash Balloon lets you show posts from your Facebook timeline, photo albums, Facebook statuses, events, and more.

Since we want to embed Facebook videos in WordPress, you’ll need to select ‘Videos’ and then click on ‘Next.’

Creating a Facebook video feed using Smash Balloon

Now, you need to select the Facebook page or group where you’ll get the videos from.

To do this, click on ‘Add New.’

Choose a source for your Facebook video embeds

Next, choose whether you want to show videos from a Facebook page or group.

Once you’ve done that, click on ‘Connect to Facebook.’

How to connect Facebook to WordPress

This opens a popup where you can log into your Facebook account and choose the pages or groups that you want to use with Smash Balloon.

After that, click on ‘Next.’

Connecting Facebook accounts to WordPress

Now, Facebook will show all the information that Smash Balloon will have access to, and the actions it can perform.

To restrict Smash Balloon’s access to your Facebook account, simply click to disable any of the switches.

Just be aware that this may affect the videos that you can embed on your WordPress blog or website so we recommend leaving all the switches enabled.

Giving Smash Balloon access to your WordPress website

When you’re happy with how the permissions are set up, click on ‘Done.’

After a few moments, you should see a message confirming that you’ve connected your WordPress website to Facebook.

With that done, you’re ready to click on ‘OK.’

Connecting Facebook pages and groups to WordPress

Smash Balloon will now return you to the WordPress dashboard automatically.

How to Embed Facebook Videos in WordPress

At this point, you’ll see a popup with the Facebook group or page that you just linked to your website. Simply select the radio button next to the page or group you want to use and then click on the ‘Add’ button.

Choosing a Facebook page or group to use with WordPress

If you accidentally closed the popup, don’t worry. You can simply refresh the page to reopen the popup.

Once you’ve done that, WordPress will take you back to the Facebook Feed » All Feeds page automatically. Just like before, click on ‘Add New,’ select ‘Videos’ and then click on the ‘Next’ button.

Now, select your Facebook page or group, and click on ‘Next.’

Selecting the Facebook page or group to use with WordPress

On this screen, you can choose the template that you want to use for the video feed.

All of these templates are fully customizable so you can fine-tune the design depending on how you want to show the Facebook videos on your website.

We’re using the ‘Default’ template, but you can choose any template you want. After making your selection, click on ‘Next.’

Using the WordPress video template

After that, you can choose whether to show all the videos from your Facebook page or group or just the videos from a specific playlist.

If you choose ‘Show from a specific playlist,’ then you’ll need to enter that playlist’s URL.

Adding a Facebook playlist to WordPress

Once you’ve made a decision, go ahead and click on the ‘Next’ button.

Smash Balloon will now create a feed based on your source and the template you’ve chosen. This is a good start, but you may want to fine-tune how the videos appear on your site.

How to Customize Your Embedded Facebook Videos

The Smash Balloon Custom Facebook Feed plugin gives you lots of ways to customize how the videos appear on your website. That being said, it’s worth taking a look at these settings.

In the WordPress dashboard, go to Facebook Feed » All Feeds. Here, find the video feed you just created and click on the ‘Edit’ button next to it, which looks like a small pencil.

Customizing the Facebook video feed for WordPress

This opens the Smash Balloon feed editor, which shows a preview of your Facebook video feed to the right.

On the left-hand side, you’ll see all the different settings you can use to customize how these videos appear on your WordPress website. Most of these settings are self-explanatory, but we’ll quickly cover the major areas.

The Smash Balloon video feed editor

If you want to change the template, then click on ‘Template.’

Then, select the ‘Change’ button.

Changing the Facebook video feed layout

This opens a popup showing all the different templates you can use for your video feed.

Simply select the design you want to use instead, and then click on ‘Update.’

Changing the video feed layout

The next setting is ‘Feed Type,’ which allows you to show different content in your feed. For example, you might decide to show photos, albums, or events instead of videos.

Since we want to embed Facebook videos, you’ll typically want to ignore this area.

Next, click on ‘Feed Layout.’

Embedding Facebook videos in your WordPress website

Here, you can choose between different layouts, such as masonry and grid, and change the feed height.

As you make changes, the preview will update automatically so you can try different settings to see what looks the best.

Changing the social media feed layout

By default, Smash Balloon will show the same number of videos on desktop computers and mobile devices such as smartphones.

You can preview how your videos will look on desktop computers, tablets, and smartphones using the row of buttons in the upper-right corner.

Testing the video feed on smartphones and tablets

Mobile devices usually have smaller screens and may struggle to process lots of large, high-resolution videos. Visitors may also be using their mobile data rather than free Wi-Fi.

With that being said, you may want to show fewer videos on smartphones and tablets. To do this, simply type a different number into the ‘Mobile’ field under ‘Number of Posts.’

Creating a mobile-responsive Facebook video feed

By default, the Facebook feed shows fewer columns on smartphones and tablets, compared to desktop computers. This helps all your videos fit comfortably on smaller screens.

However, after testing the mobile version of your WordPress website, you may be unhappy with how the columns look on tablets and smartphones.

You can change the number of columns that Smash Balloon uses on tablets, mobiles, and desktop computers using the ‘Columns’ settings.

Changing the columns in a mobile responsive layout

The next settings page is ‘Color Scheme.’

Smash Balloon uses the colors inherited from your WordPress theme by default, but on this screen, you can switch to a ‘Light’ or ‘Dark’ color scheme instead.

Another option is to create your own color scheme by selecting ‘Custom’ and then using the controls to change the background color, change the text color in WordPress, and more.

Adding a custom color scheme to a social media feed

Smash Balloon can add a header to your feed, which is your Facebook profile picture and the name of the page or group. This lets visitors know where the embedded videos come from, and where they can find this content on Facebook.

To add this section, click on ‘Header’ in the left-hand menu.

Changing the Smash Balloon header settings

You can then click on the ‘Enable’ toggle.

After adding a header you can change how this area looks, including hiding or adding your Facebook profile picture, changing the size of the bio text, and more.

Removing the Facebook header from a WordPress embed

If you want to remove the header completely, then click to turn off the ‘Enable’ toggle.

By default, Smash Balloon shows the title of each video. If you want to hide the title, then select ‘Posts’ from the main Smash Balloon editor menu.

Then, go ahead and click on ‘Post Style.’

Changing the video post style

On this screen, you can hide the video titles by clicking on the ‘Show Video Title’ slider.

This can be useful if you haven’t added titles to all your videos, or your titles don’t make sense outside of Facebook.

Hiding the Facebook video titles

On this screen, you can also hide or show the video descriptions. For example, you may use these descriptions to provide extra information about the video.

To add the description, simply click to enable the ‘Show Video Description’ switch.

By default, Smash Balloon doesn’t add the Facebook ‘like’ button to your video feed. If visitors like your embedded videos then they may want to follow you on Facebook.

With that being said, you may want to add a ‘like’ button to the feed, by selecting ‘Like Box’ from the editor’s left-hand menu.

After that, simply click on the ‘Enable’ button so that it turns blue.

Adding a Facebook like button to WordPress

Smash Balloon adds this button below your video feed, but you can change this by opening the ‘Position’ dropdown and choosing ‘Top.’

On this screen, you can also change how the ‘like’ section looks including changing its width, showing how many people follow you on Facebook, adding a custom call to action, and more.

How to customize the Facebook like button in WordPress

When you’re happy with how the button looks, you can move on to the next settings page by selecting ‘Load More Button.’

The Load More button encourages visitors to scroll through more of your video feed, so Smash Balloon adds it to your embedded Facebook feed by default.

Adding a Load More button to WordPress

Since it’s such an important button, you may want to customize this button by changing its background color, hover state, label, and more.

Another option is to remove the button completely, by clicking the ‘Enable’ toggle. For example, you might remove this button and then encourage visitors to check out your Facebook page in order to see more of your videos.

Removing the Load More button from WordPress

By default, Smash Balloon allows visitors to watch your Facebook videos without leaving your WordPress website.

They can simply click on any video thumbnail to open it in a lightbox, as you can see in the following image

Smash Balloon's lightbox popup feature

Visitors can scroll through the videos in your feed using the arrows.

If they want to like a photo, leave a comment, or share the video to their page, then they can click on the ‘View on Facebook’ link.

A 'View on Facebook' link created by Smash Balloon

There are a few different ways that you can customize Smash Balloon’s default lightbox.

To see your options, click on ‘Lightbox’ in the left-hand menu.

 Customizing the lightbox popup using Smash Balloon

Here, you can change the color of the lightbox’s text, links, and background colors.

The lightbox feature allows visitors to watch your videos in a popup. If you prefer, then you can disable the lightbox so that all your videos play as small thumbnails, embedded inside the page content.

In this way, you can encourage people to visit your Facebook page, to see the full-size video. To disable the lightbox, simply click on the ‘Enable’ toggle to turn it from blue to grey.

Disabling the lightbox popup feature

When you’re happy with how the video feed looks, don’t forget to click on ‘Save.’

You’re now ready to embed the Smash Balloon feed in your website.

How to Add Facebook Videos to WordPress

With Smash Balloon, you can add the video feed to your WordPress website using a block, widget, or shortcode.

If you’ve created more than one feed using Smash Balloon, then you’ll need to know the feed’s code if you’re going to use a widget or block.

To get this code, go to Facebook Feed » All Feeds and then look at the feed="" part of the shortcode. You’ll need to add this code to the block or widget, so make a note of it.

In the following image, we’ll need to use feed="6"

Getting the code for a Facebook video feed

If you want to embed your Facebook feed in a page or post, then we recommend using the Custom Facebook Feed block.

Just open the page or post where you want to embed your Facebook videos. Then, click on the ‘+’ icon to add a new block and start typing ‘Custom Facebook Feed.’

When the right block appears, click to add it to the page or post.

The Custom Facebook Feed WordPress block

The block will show one of your Smash Balloon feeds by default. If you want to use a different video feed instead, then find ‘Shortcode Settings’ in the right-hand menu.

Here, simply add the feed="" code and then click on ‘Apply Changes.’

Adding a video feed to WordPress using code

The block will now show the videos from your Facebook page or group. Just publish or update the page to make the video feed live on your website.

Another option is to add the feed to any widget-ready area, such as the sidebar or similar section. This allows visitors to watch your Facebook videos from any page of your site.

Simply go to Appearance » Widgets and then click on the blue ‘+’ button.

Adding videos to Facebook using a widget

After that, find the ‘Custom Facebook Feed’ widget.

Then, just drag it onto the area where you want to show the video feed.

Embedding Facebook videos using a widget

The widget will show one of your Smash Balloon feeds automatically.

To show a different feed instead, type or paste the feed’s code into the ‘Shortcode Settings’ box and then click ‘Apply Changes.’

Adding a Facebook video feed to WordPress using shortcode

You can now make the widget live by clicking on the ‘Update’ button. For more information, please see our step-by-step guide on how to add and use widgets in WordPress.

Finally, you can embed videos on any page, post, or widget-ready area using a shortcode.

Simply go to Facebook Feed » All Feeds and copy the code in the ‘Shortcode’ column. You can now add this code to any Shortcode block.

For help placing the shortcode, please see our guide on how to add a shortcode.

Add a Specific Facebook Video in WordPress

Sometimes you may want to embed a specific Facebook video in a page or post. For example, you might have a Facebook video that talks about the same topics as your latest blog, or a promotional video showing the product you’ve just launched on your online store.

To embed a specific video, you’ll need to buy and install the Featured Posts extension as it allows you to display a particular post or event using its ID.

To start, go to Facebook Feed » Extensions.

Here, find the ‘Featured Posts’ extension and click on its ‘Add’ button.

How to install the Featured Posts WordPress extension

This will open the Smash Balloon website in a new tab, with instructions on how to purchase the extension.

Once you have the extension, you can install it in exactly the same way you install a plugin. If you need help, then please see our guide on how to install a WordPress plugin.

After activating the plugin, go to Facebook Feed » All Feeds and click on ‘Add New.’

Under ‘Advanced Feed Types,’ select ‘Single Featured Post’ and then click ‘Next.’

How to show a specific Facebook video in WordPress

You can now choose the page or group that you want to use as your source by following the same process described above.

On the next page, you’ll need to enter the ID of the video that you want to embed.

Adding a Facebook post URL or ID to WordPress

To get this ID, visit Facebook in a new tab and then open the video that you want to embed.

You can now go ahead and copy the URL.

How to get the post ID for a Facebook video

After that, just post the URL into your WordPress dashboard and click on ‘Next.’

Once you’ve done that, you can style the video and then add it to your site following the same process described above.

We hope this article showed you how to embed a Facebook video in WordPress. You may want to check out our guide on how to create an email newsletter and our expert pick of the best YouTube video gallery plugins.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Embed a Facebook Video in WordPress first appeared on WPBeginner.


February 03, 2023 at 01:03AM

Image Alt Text vs Image Title in WordPress – What’s the Difference?

A lot of content on the web includes images. However, not many website owners optimize their images for speed or better search rankings.

Even though WordPress comes with the option to add alt text and an image title, often beginners do not understand the difference and how to use them.

In this article, we will share the difference between image alt text vs image title in WordPress, so you can improve your image SEO.

Image Alt Text vs Image Title in WordPress - What's the Difference?

Here’s what we’ll cover in this tutorial:

What’s the Difference Between Alt Text and Image Title?

‘Alt text’ is short for ‘alternate text’ and is an attribute that is added to an HTML image tag. The text describes the image, so visitors who can’t see the image and search engine bots will understand what the image is about.

If an image on your WordPress website can’t be found or displayed for some reason, then the alt text will be shown instead, as you can see in the following screenshot.

Alt text displayed next to a broken image icon

Alt text is different from the image’s title. The title will be displayed in a small popup box when you bring your mouse cursor over the image.

An image with the title text

Alt text and image titles are also used to improve the accessibility of your website for those with poor vision and who use screen reader devices to read your site’s content.

When the screen reader comes to an image, it will read the alt text. Depending on the user’s settings, it may also read the title text.

For both accessibility and search engine optimization (SEO), alt text is more important than title text. This is why we strongly recommend including alt text for all your images.

How to Add Alt Text to an Image in WordPress

WordPress allows you to easily add alt text to your images. You can do this from the block editor, the classic editor, or the WordPress Media Library.

Adding Alt Text in the Block Editor

Simply create a new post or page or edit an existing one, and add an Image block.

Add an Image Block

If you’re not sure how to add a block or you need some extra help with the block editor, then just check out our tutorial on how to use the WordPress block editor.

Now you need to upload your image or drag and drop it into the Image block. You can then set the alt text on the right-hand side of the page.

Adding alt text to an image in the WordPress block editor

Adding Alt Text in the Classic Editor

If you’re still using the classic WordPress editor, then you can add image alt text when adding the image.

First, click on ‘Add Media’ above the posting box.

Click 'Add Media' in the classic editor to add an image to your post

After that, you should either upload the image from your computer or click the ‘Media Library’ tab to view images you’ve already uploaded.

Next, click on the image you want in order to select it, and then type the alt text you want into the ‘Attachment Details’ of your image.

Adding alt text to an image in the classic editor

Adding Alt Text in the Media Library

You can also add alt text to an image by going to Media » Library and clicking on the image to edit it.

Viewing or editing the alt text for your image in the WordPress media library

Remember, this won’t change the alt text for any instances of that image that you’ve already inserted into posts or pages. However, if you add the image to a post or page after adding alt text here, then the alt text will be included with it.

How to Add Image Titles in WordPress

It’s important to understand that there are two types of titles that you can add to your images.

First, there is the default image title WordPress uses internally to identify media files in the Media Library and attachments pages. Second, there is the HTML image title attribute added to images in your posts and pages.

Let’s take a look at how to add both types of titles.

Adding the WordPress Image Title in the Media Library

You can add WordPress media titles to your images using the

Media Library. When you edit an image in the Media Library, you will see a ‘Title’ field.
Adding an Image Title in the WordPress Media Library

This title is used by WordPress to identify the image. When you click the ‘View attachment page’ link at the bottom of the screen, you’ll see the title is used as the title on that page.

Viewing the image's attachment page, with the image title shown

The WordPress media title isn’t necessary for image SEO or for users with screen readers. While it may be helpful in some cases, it’s not as useful as the image’s HTML title attribute. So how do you create that?

Pro Tip: Would you like to automatically use the WordPress media title as the image’s title attribute in your posts and pages? Take a look at the section below where we show you how to do this using All in One SEO Pro.

Adding an HTML Image Title Attribute in the Block Editor

It’s easy to add a title attribute in the block editor. Simply click the image and then click the down arrow next to ‘Advanced’ to show the advanced image options.

Adding the Title Attribute in the Block Editor

Now you can simply type the title in the ‘Title Attribute’ field.

Adding an HTML Image Title Attribute in the Classic Editor

Adding a title attribute using the old classic editor is similar. You can add the title attribute by clicking on an image and then clicking the pencil icon.

Editing an image in the WordPress classic editor

You’ll then see the ‘Image Details’ screen. To set the image title attribute, you need to click the little down arrow next to ‘Advanced Options’ at the bottom.

Click the downward arrow to view the Advanced details for your image

You can then set the image’s title attribute. Make sure you click the ‘Update’ button at the bottom of the screen when you’re done.

How to Automatically Set Alt Text and Image Titles Using AIOSEO

All in One SEO (AIOSEO) is the best WordPress SEO plugin on the market. It will add a proper image sitemap and other SEO features to improve your SEO ranking. It also lets you automatically set your alt text and image titles, and more.

The first thing you need to do is install and activate the All in One SEO plugin. For more details, see our step-by-step guide on how to install a WordPress plugin. To use the Image SEO feature, you will need the Plus plan or above.

Upon activation, the plugin will launch the setup wizard automatically. You can learn how to configure the plugin in our guide on how to set up All in One SEO correctly.

Now you need to navigate to All in One SEO » Search Appearance and then click on the ‘Image SEO’ tab. After that, you’ll have to click the ‘Activate Image SEO’ button to enable the premium image SEO features.

Activating the Image SEO Module in AIOSEO

Setting Image Titles Using All in One SEO

Make sure that you are looking at the ‘Title’ tab of the Image SEO page. Here you can choose tags that will set the format used to automatically generate title attributes for your images.

For example, if you include the ‘+ Image Title’ tag, then each image in your posts and pages will automatically use the WordPress media title in the HTML title attribute.

Customizing the Image Title in AIOSEO

You can also add other tags, such as your website title, to your image title attribute. All in One SEO can even strip punctuation from the title and change its capitalization.

Setting Alt Text Using All in One SEO

Next, you need to click the ‘Alt Tag’ tab on the AIOSEO’s Image SEO page. Here you can automatically format the alt text of your images.

By default, AIOSEO will simply use the image’s alt text. If you like, you can also add your website’s title and other information to the alt text of each image on your website.

Customizing the Alt Tag in AIOSEO

Why Use Alt Text and Image Titles in WordPress?

We strongly recommend using alt text for all images. Here on WPBeginner, we also add a title to all images. However, this is less important than the alt text.

Alt text is important because Google focuses on it as a ranking factor for images. It is also used by screen readers to help visitors with impaired vision to fully engage with your content.

You should never just stuff keywords into alt and title tags. It’s important that you make them descriptive and helpful so that they’re useful for visitors who need them. You can use your keywords where relevant, but don’t overdo it.

For example, if you’re writing an article about the best WordPress hosting, then your target keyword could be “best WordPress hosting”.

You might also have a screenshot in your article showing users how to set up an account with a popular web host like Bluehost. Let’s take a look at some good and bad examples of alt text for that image:

  • “Account setup” is not very descriptive and also doesn’t include anything related to your keyword.
  • “Best WordPress hosting, WordPress hosting, best web hosting for WordPress” doesn’t describe the image and is stuffed with keywords.
  • “Setting up a WordPress hosting account” is much better as it’s descriptive and uses part of the keyword in a natural and appropriate way.

We hope this article helped you understand the difference between image alt text and image title in WordPress. You may also want to learn how to optimize images for the web, and check out our list of the best WordPress SEO plugins and tools.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post Image Alt Text vs Image Title in WordPress – What’s the Difference? first appeared on WPBeginner.


February 02, 2023 at 03:05PM