September 13, 2019
3min Read
Dina F.
If you’re new to the realm of WordPress featured image, then this article is for you. We will cover everything you need to know about this feature: what it is, why you should use it, and how to enable it on your site.
Featured images or post thumbnails are used to represent your posts, pages, and custom post types. You can usually find them on your homepages, post pages, and blog archives.
Here’s an example of a featured image:
Other than that, featured images will also appear when your articles are shared on other platforms.
Featured images are more than just accessories for your website. Here are some benefits you’ll get by using them:
Unfortunately, some WordPress themes do not support featured images at all.
Do not worry though — you can easily fix this issue by inserting the following code to the theme’s functions.php file:
add_theme_support( 'post-thumbnails' );
Once you’re done, the featured image settings should be available when you create or edit a post.
However, the code above does not make your theme display the featured images — it only enables the option in your post editor. To show the images, you need to add the code snippet below to the file where you want them to be displayed:
<?php the_post_thumbnail(); ?>
The file that needs to be edited may vary depending on your theme, but the code has to be placed inside a loop.
After you’re done, you can proceed to the following tutorials where we will guide you through the steps to add and resize WordPress featured images.
If for some reason you want to remove the image, click on the Remove featured image option.
Whenever you upload an image to WordPress, you can see that there are four default image sizes in the settings:
In some cases, these image sizes might not suit your needs. Not to worry, you can easily overcome this issue by following these steps:
If you need more size settings, you can add custom WordPress image sizes to the functions.php file. Check out our article to learn more about it.
If you’re using WordPress 5.0, you must have met its new block editor — Gutenberg.
One of WordPress’ newest features that Gutenberg brings to the table is the Cover block. True to its name, this feature allows you to add cover images — or header images — to your posts and pages.
Unlike WordPress featured images, header images only appear on posts and pages where they serve as article covers and section dividers. However, these two features also share a similarity: some themes don’t support them.
Here’s how to add a header image to your WordPress post:
Featured images are an essential part of your WordPress website. They help to attract readers, increase the value of the posts, and improve the site’s overall SEO. And as you can see here, it’s not hard to set them up.
Why don’t you give them a try?
Leave a reply