Add External Featured Images to WordPress Posts
WordPress allows us to upload a featured image to posts.
By default, these featured images must be hosted on your site’s server. However, what happens if you want to use an image located outside your site? Luckily, there is a plugin for that purpose.
In this short tutorial, I’m going to show you how to choose a remotely-hosted featured image with the Nelio External Featured Image plugin.
Step #1. Install Nelio External Featured Image plugin
- Login to your WordPress site.
- Go to Plugins > Add new and search for “Nelio External Featured Image”.
- Click “Install Now” and activate the plugin.
Step #2. Add an external featured image to your post
Create or edit a post. You will notice above the regular Featured image section there is a new block named “External Featured Image”, where you can simply paste in the full URL of a jpg, png or gif file:
Save the changes when you’re done.
Step #3. End result
Click on “Preview changes” button to see how the featured image looks:
Note: the image is added as background inside the <img/> tag that would render the regular featured image. If the external featured image is not visible, it may require you to add custom CSS to define the width and height for it. For example:
{codecitation css}.wp-post-image {
width: auto;
height: 300px;
}{/codecitation}
Hopefully this tutorial helps you. Click here you need to make sure every post has a featured image.