Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Preview images is scaling WordPress


The preview images on that page:
are scailing, but I would like to have them size 1:1.

I changed the size in the CSS:


.fpost .post-thumb img { display:block;
width: 235px;
padding: 0px;
margin-right: 24px;
margin-top: 4px;
border-style: hidden;


then I'm uploading an image withe the size 235 x 135, but somehow it's not showing the full image it's only a part of it.

How can I change the preview to 1:1?

Answers (4)


Elliott Richmond answers:

Can't be don't directly with CSS you need to put it through a resizing script, I would recommend TimThumb
hope this helps :-)


Dan | gteh answers:

Are you using the wordpress featured image to grab that image? If so... use it this way.

add this to functions.php

add_image_size( 'thumbnails', 235, 135, true ); /* Thumbnails posts */

Then call the post thumbnail in your loop with

<? the_post_thumbnail('thumbnails'); ?>

The 'true' in add_image_size will fit it properly

Simone Fuchs comments:

Yes, I'm using WP featured image, where exactly do I have to add the seconde code, also functions.php ?

Dan | gteh comments:

The Second one goes inside your loop in the spot where your image is being called. Most likely index.php. I xan look at it through ftp if you cant find it.


Jason Manheim answers:

You're generating thumbnails. The loop code needs to change to allow for full images and not thumbs.


Gabriel Reguly answers:

Hi Simone,

Change your thumbnail sizes at