Important:
This support area is for Kalium 3 users only. Support for Kalium 4 has moved to our new platform at support.laborator.co. If you’re using Kalium 4, please create a new account there using your email and license key. A password will be sent to you automatically.

Okay
  Public Ticket #919756
Image gallery post - height differences
Closed

Comments

  •  2
    renownedteam started the conversation

    Hi,

    About making a new image gallery post (not a portfolio, but a new blog post type), is it possible to have the images all the same height? Would this require coding?

    Currently having some images vertical, some horizontal and some different sizes means the arrows on the gallery are constantly changing position so it becomes difficult to just click through the images. 

  • [deleted] replied

    Hi,

    If you want all images to have the same height then you need to use "cropped" images, does this works for you?

    If so I can give you the code for that, however I'd like to try it how it looks, so please include WP credentials as well.

    To include your credentials click Insert Credentials button in editor toolbar. (See how)

  •   renownedteam replied privately
  • [deleted] replied

    Hi,

    Thanks for providing your WP credentials, however I am not able to access your site because you didn't specified the URL. 

    Please include the blog post with gallery so I can access the issue quickly.

  •   renownedteam replied privately
  • [deleted] replied

    Hi,

    I tried to login to your site however I was not able to login (invalid username/password) however can you try this variant:

    Can you please add the following code in functions.php (end of file):

    function fixed_height_carousel_images_blog( $size ) {
    if ( is_single() ) {
    return 'blog-image-carousel';
    }

    return $size;
    }

    add_filter( 'kalium_gallery_slider_image_size', 'fixed_height_carousel_images_blog' );
    add_image_size( 'blog-image-carousel', 1000, 650, true );

    Then regenerate thumbnails and check if it works