Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
  • #4564

    Can you please tell me – the featured image for my posts (which is currently displaying at the top of all posts as a small image) – how can I make display as a large image?

    e.g. the image at the top of this post is the featured image. I want it to be large and at the top of the post. NOT small as it currently is.

    How can I make that change please?

    Thank you very much.


    Great Question! Woke up thinking about the same thing.

    We set the feature image to 700 x 320 it works great in the slider. The square image is fine in the post on the home page. It would be nice to have it a full width on the post page when the reader clicks the “read more” or title. I estimate that would be about 600 pixels wide by 275 pixels tall spanning the top of the story. Sort of a wide screen image that matches the aspect ratio of the slider.



    I agree that the image size needs fixing, the page doesn’t look right as it is.

    In functions.php immediately under this code:

    $k_option['custom']['imgSize']['base'] = array('width'=>267, 'height'=>180); 	// backend preview size, if changed does not affect the frontend
    $k_option['custom']['imgSize']['S'] = array('width'=>60, 'height'=>60); // small preview pics for half sized posts and sidebar news
    $k_option['custom']['imgSize']['M'] = array('width'=>180, 'height'=>180); // big preview pic for full sized posts
    $k_option['custom']['imgSize']['L'] = array('width'=>700, 'height'=>320); // image for accordion and featured news slider
    $k_option['custom']['imgSize']['XL'] = array('width'=>960, 'height'=>320); // big images for fullsize pages and fade slider

    add this code:

    $k_option['custom']['imgSize']['P'] = array('width'=>566, 'height'=>99999); // post content image

    This creates a new image size called “P” (for page?) which is the content width (580px) minus the 7px padding on each side of the image (580 – 14 = 566) with unlimited height.

    Next, in single.php find this code:

    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array('M'),
    'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox')
    'linkurl' => array ('fullscreen','_preview_big'),
    'wh' => $k_option['custom']['imgSize']['M']

    and change it to:

    $preview_image = kriesi_post_thumb($post->ID, array('size'=> array('P'),
    'display_link' => array('lightbox'), // '_prev_image_link' or array('lightbox')
    'linkurl' => array ('fullscreen','_preview_big'),
    'wh' => $k_option['custom']['imgSize']['P']

    to use the new image size.

    Lastly, you need to regenerate the thumbnails as the image sizes defined in functions.php only apply to new images, not to existing ones. Use the WP Regenerate Thumbnails plugin to do this.

    Hope this helps, let me know how you get on.



    Hi there,

    This hasn’t worked. The image has actually changed to be smaller. Please see

    Please advise.

    Many thanks.


    Thank you James, I got involved in some other work and just got back to this forum. I will test your recommendations and report back with the results.


    Well James, that had odd results. I am going to go check the code, I must have made a mistake. Made the changes, and I regenerated the thumbnails with the plugin… rechecking the code…

    Looks like the changes to function.php and single.php match what you gave me.

    The image is distorted with lines of color and is still the original “M” size 180×180.

    I changed the “99999” you recommended in the height setting to “320” and that eliminated the distortion. We are planning on a standard 700x 320 for our feature image so that works for us. We do not need a unlimited height for this project.

    With that change the feature image is still 180×180, oddly a magnifying glass is in the middle of the post at what would be the center of the new wider image. I think we need to make one more change to have that image span the entire column, but I am not sure what that is. Here is the page I am testing on (Purchase code hidden if logged out) /

    Also once we find the changes, I would also like the single pages to support this option, not just the posts.


    Hi james, I went and did it again. I’m sure I followed directions properly and this time came up with the same result Steve describes above. I have restored to my original files but hope you can offer further advice.

    Thank you.


    We are not in production yet so I left my files as you indicated, with my change to the “unlimited” size operator. I can also provide a login, if you need it for debug, just email me for that.


    Hey Steve,

    Can you provide the site URL for the files in their modified state?

    The code I provided worked in my test environment so this needs further investigation.



    Thank you James,

    I was pulled away on another project, sorry for the delay.

    I can provide you an admin login I sent you a message on your personal contact page.


    Rereading this you asked for the URL of the “modified state” I had that in a prior posting.

    Here is the page I am testing on (Purchase code hidden if logged out) /

    The files function.php and single.php would be in the appropriate WP locations, the reason I sent you my email on your personal contact page.

    I did come up with a possible workaround, but intend to hold off on that testing until you have a chance to look at this.

    The thought is we would remove the preview image code in single.php and add the full width image by hand in the post. I note this if others want to try that option.

Viewing 11 posts - 1 through 11 (of 11 total)

The topic ‘Featured image larger please’ is closed to new replies.