This topic has 4 replies, 2 voices, and was last updated 9 years by anetteleupold.

  • Author
  • #63864
     anetteleupold
    Participant

    Hello,
    the „Small Left Thumb“ Blog Layout uses the complete post image as thumbnail.
    Is it possible to use the cropped wordpress preview image instead so that all images have the same size ?

    Anette 🙂

    #63875
     sharmstr
    Moderator

    The images are resized on the fly. As you’ve seen the resize only takes into consideration the width which is set to 480px and will scale the height accordingly. (note: depending on your screen size, the image might not display 480px wide, but it is) If you use the standard WP thumb size of 150px your going to have to make a bunch of css changes as well, plus it wont effect videos or image gallery thumbnails. I suggest sticking with the 480px width, but changing the resize to hard crop to 480px height as well. Try this and let me know what you think.

    Copy /kleo/page-parts/post-content-small.php to your child theme. Go do to around line 146 and change it from this

    COPY CODE
    
    $image = aq_resize( $img_url, $kleo_config['post_gallery_img_width'], null, true, true, true );
    

    to this

    COPY CODE
    
    $image = aq_resize( $img_url, $kleo_config['post_gallery_img_width'], '480', true, true, true );
    

    If you dont like that, you can always change the sizes. Set height and width to whatever you want.

    COPY CODE
    
    $image = aq_resize( $img_url, 'width', 'height', true, true, true );
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63881
     anetteleupold
    Participant

    Works perfectly, thanks sharmstr !

    #63884
     sharmstr
    Moderator

    Be sure to check that file against any new updates.

    I do like this idea though. Maybe I’ll put a switch in theme options.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #63885
     anetteleupold
    Participant

    Great 🙂

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

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?