3 EASY STEPS TO ADD POST THUMBNAIL IN WP THEME vv

After launch of wp 2.9 new feature is available in wp which is to add Post Thumbnail In Theme . Now it’s wp 3.1 era & now I am sharing to do this in 3 easy steps .

WP Logo

just follow this easy steps to make your theme thumbnail ready

  • Make Theme Ready For Thumbnail

In this step you have to edit your themes function page. Add the code bellow to the functions.php file in your theme folder.

add_theme_support(‘post-thumbnails’);

set_post_thumbnail_size(150, 100, true);

Now Your theme is ready for post thumbnail . You can edit size of thumbnail

  • Call The Thumbnail

Now you have to edit index page to call the thumbnail to make your theme to call the thumbnail.You have put the code below this code

& up to this code

The code is

Now theme is totally ready for thumbnail.

  • Choose Thumbnail

Now go to post page . Their in right hand sidebar you can see option as featured image .Just choose featured image . Now everything is done . You can see thumbnail on front page

    0 comments:

    Post a Comment