Below are steps of adding featured image to your theme wordpress

Below are steps of adding featured image to your theme wordpress

Featured images also post thumbnails and this makes a great impact on WordPress nowadays. Like in Carrington 1.1 theme mobile responsive theme which don’t support featured images, you might want to add it if you are using it or add in your existing theme which don’t support it. Although this tutorial solves the issue, however in most themes its preview comes in these ways, featured image makes your post bright, it makes its interface superb according to your size and makes your visitor relax and that will  Reduce your bounce rate.

Because your visitor is probably taking a cup of wine while reading your post, this makes your Seo good and relevant for search engine.

how to add featured image in wordpress

     When you want to upload or add this how it looks like

how to add featured image in wordpress

For most WordPress theme which supports the theme or not, when added it might be smaller or bigger. Adjust to what size and width these articles will be.

Add this to your code line in functions.php file:

add_theme_support( 'post-thumbnails' );

If you add the above code, it will add an option to add featured image to your theme however, you need to edit the template to tell the theme where to display.

Edit your theme and add this code:

<?php the_post_thumbnail(); ?>

These files you added to your theme will vary based on your theme. You will want to add the code inside your post loop.

Do you want to read about improving your website seo read the following

To set the size and width, add this code to your functions.php

set_post_thumbnail_size( 50, 50);

the main parameters used in the featured image is width and height.

Another is additional to set your post thumbnails size in functions, these are examples:

// Image size for single posts
add_image_size( 'single-post-thumbnail', 590, 180 );

However, if you have done all and yet you’re having the issue of picture size in an old post, you will need to install regenerate thumbnails plugin and image size in for older post.

These are featured image function with a specific size

<?php the_post_thumbnail(
'single-post-thumbnail' ); ?>
(0 votes. Average 0 of 5)
Leave a reply

Your email address will not be published. Required fields are marked *