when i open any post then 1st image show my featured image. i want to increase this size . see it or . i already try to increase from single.php to change this code

<p><img src="<?php echo get_template_directory_uri(); ?>/images/thumbnails/thumbnail-leadimg.jpg" width="610" height="320" alt="<?php the_title_attribute(); ?>" /></p> 

but it's not working . my orginal code

<p><img src="<?php echo get_template_directory_uri(); ?>/images/thumbnails/thumbnail-leadimg.jpg" width="610" height="225" alt="<?php the_title_attribute(); ?>" /></p>

i don't understand how i can change it. my site http://www.dewdropzone.com .


3 Answers 3


It's probably because the original image is not big enough. You can make the image display bigger via CSS :

    height: 320px
  • thanks for reply. you can check now i change my image size. but not working. see it desyfun.tk/?p=185 . Oct 20, 2012 at 4:14
  • i use this code but it's not working....... Oct 20, 2012 at 14:01
  • I don't know where you put the CSS code I mentioned : I don't see it on your page. To use this code, edit the wp-content/themes/periodic/periodic/style.css file and insert the code at the end. Oct 21, 2012 at 19:49
  • In this case, could you please mark the answer as the good one ? Oct 22, 2012 at 13:58

You can try something like this:

<!-- The Post Thumbnail function is active by default, but this line of php will make it display.-->
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" target="_blank"><?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) { the_post_thumbnail(array(150,150, false), array("class" => "alignleft post_thumbnail")); } ?></a>
<!--Post Thumbnail Ends-->

This part in particular will control the size of your thumbnail regardless of the size of the image:

the_post_thumbnail(array(150,150, false) 

/* width, height, option to crop 
Generally the default is set to true in order to crop the image*/

And the it is wrapped in anchor (link) tags so that if the person wants to view the original image size all they have to do is click on it to enlarge it and view it at full size.

You can also standardize your featured image size via your functions.php file. Just add this to your functions.php:


// If not the standard size, state your size too
set_post_thumbnail_size( 150, 150, false );

This will standardize the size of the featured image thumbnail size rather than putting the sizing attribute in your theme template files.


If you have changed the size of your thumbnails via set_post_thumbnail_size() the new thumbnail size applies to new uploaded images only. If you want to see the effect with existing images you need to regenerate all thumbnails. There is a plugin for this http://wordpress.org/extend/plugins/regenerate-thumbnails/

  • i use this plugin ... but it's not working....... Oct 20, 2012 at 13:52
  • first you need to change thumbnail size in your functions.php. Did you change it there? add_image_size('thumbnail-leadimg', 610, 320, true); // Lead Image Thumbnail Size
    – mirage
    Oct 20, 2012 at 17:06
  • yes i change it. but not working.... Oct 20, 2012 at 17:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.