• Hi. Thank you for your theme development.

    1.

    I’ve tried to display hard cropped image on index page…all day.

    I used add_image_size( 'display-image', 150, 150, true );

    and changed in index.php like following:

    if( wp_is_mobile() ) { $postimg = 'display-image'; } else { $postimg = 'display-image'; }

    result was.. it didn’t work.

    and the image size only changes based on your style.css’s width part .. I think

    #post-entry div.post-thumb.in-archive

    I’ve tried similar ways to get hard cropped image.. but I never got hard cropped..a perfect square sized images.

    2.

    dez_get_featured_post_image

    has $width,$height

    but when i changed these parameters, Its img size never changed..

    ex) 300, 300 → 150, 150 in index.php

    why do we have these parameters? I’m curious..

    Like I said before, displaying image size is based on style.css.
    These two parameter doesn’t effect to displaying image size.(I think)

    I’m a web programming newbie. would you help me?

    🙂

Viewing 1 replies (of 1 total)
  • Theme Author Richie KS

    (@rkcorp)

    the image had 100% width based on it container, try add this to theme option->custom css

    #post-entry div.post-thumb.in-archive { width: 150px;height:150px;}
    #post-entry div.post-thumb.in-archive img { width: 150px;height:150px;}
    #post-entry .has_thumb .post-right {margin: 0 0 0 160px;}
Viewing 1 replies (of 1 total)
  • The topic ‘How can I display 'Hard Cropped' image on the Index page?’ is closed to new replies.