Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13133

    Hi,

    I would like to have a post image over the whole post width instead of this:

    http://i45.tinypic.com/2w6hslj.jpg

    - same behaviour as the standard (lightbox etc.), but just over the whole width, i.e. 580 px wide and around 250 px high.

    Where can I change this?

    #77952

    I’ve tried this solution here:

    http://www.kriesi.at/support/topic/featured-image-larger-please#post-20617

    and created new posts, to go sure, that I don’t need to regenerate thumbnails by plugin new.

    functions.php, I add this in line 14:

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

    In single.php I changed in line 25-29 the letter “M” to letter “P” according to my changes in the functions.php:

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

    but I’ve got a strange result:

    the square image remains, but when hovering this image, a magnifying glass is in the middle of the post, what would be the center of the new wider image; I can analyze with firebug an image width of 566 px for lightbox:

    Screenshot:

    http://i49.tinypic.com/w858pl.jpg

    I can’t change the CSS for

    .entry-previewimage{

    float:left;

    height:180px;

    margin:4px 20px 10px 0;

    padding:7px;

    width:180px;

    }

    because this

    a) changes also the preview post images at the frontpage

    b) has no effect to the “cut” of the images at the single post –> it still remains cut to a 180×180 image:

    What can I do, so that at a single post the featured image is really 566 px wide?

    Note: the square version of this image should remain at the frontpage posts overview!

    Thanks in advance!

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

The topic ‘Post image over the whole post width instead of just a square version?’ is closed to new replies.