comment 0

How to add Featured Image on WordPress theme

Do you using latest version of WordPress ?? , or you just have been update your WordPress into latest version ?? (note : latest version is 3.1.3) . For Standard theme you will found set featured image. Ya , its new feature from new version of WordPress, they include a module to set a featured image into your theme :). Unfortunately you have choose a WordPress theme and that WordPress theme not supported with featured images? Don`t worry , There are how to add featured Image on WordPress theme.

here we go, 8)

First step , log in into your Cpanel or your WordPress dashboard, open to edit function.php your theme (before do this, i suggest you to backup firstly)

Second step, add this code into your line of function.php

add_theme_support( 'post-thumbnails' );

save your function.php :smile:
after that, open to edit your index.php or which page you want add a featured images, add this code to the line where you want to add featured images

Sponsored links

<?php the_post_thumbnail();?>

save your file :woot:

latest step is add css code to end line of your css WordPress theme

.attachment-post-thumbnail{width:200px; height:200px; padding:10px 20px 10px 0; float:left;}

save your css file :musik:

Enjoy Coding :redface:

Leave a Reply

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