Below are steps of adding featured image to your theme wordpress

This article is protected by Google copyright infringement powered by copyscape pirating of this post dont meet our policy standard you can read more to know how to copy our post.

Reliable Web Hosting in Nigeria by DomainKing.NG
featured image in 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' ); ?>

About the Author

Elvis Chris Elvis Chris
Elvis Chris
Am ELVIS CHRIS a Standcode official a certified Programmer on HTML, CSS, JAVASCRIPT JQUERY PHP, SEO I teach webmasters and bloggers, their is one thing I tell people please stay out of vulnerability.
Question posted in standcode
forums
are answered in a moment

Be the first to comment on "Below are steps of adding featured image to your theme wordpress"

Leave a comment

Your email address will not be published.


*


error: Content is protected !!