This topic has 2 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #65226
     ARCHE
    Participant

    Hi,

    Is it possible to customise Portfolio images dimensions? I would need them to appear more vertical (I intend to use 5 columns per row) and/or as masonry depending on the featured image size. Thanks.

    #65228
     ARCHE
    Participant

    Something like this sample sample. Or all featured images with the same vertical dimensions also.

    #65245
     sharmstr
    Moderator

    Copy /kleo/page-parts/portfolio-masonry.php to your child theme. Search for aq_reize. There should be two of them; one for sliders and one for single images (default). Change those lines, replacing $img_width and $img_height to whatever you want. This obviously wont effect other post types like video.

    COPY CODE
    
    $image = aq_resize( $slide, $img_width, $img_height, true, true, true );
    $image = aq_resize( $slide, 300, 150, true, true, true );
    

    If you want to change the way it crops or anything else, read about it on the aq_resize wiki: https://github.com/syamilmj/Aqua-Resizer/wiki

    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

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

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

Log in with your credentials

Forgot your details?