Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1464903

    Hello,

    I use the avia element “Gallery”. There image styles are used in the lieghtbox if the image exceeds a certain size. Would it be possible to always display the original image in the lightbox (the original image file).

    View post on imgur.com

    Hope there is a filter or another solution for this.

    Thanks

    Chris

    #1464930

    can you try this in your child-theme functions.php:

    function custom_alb_lightbox_image_size( $size, $context ){
      if( $context == ('av_gallery' || 'avia_masonry') ){
        return 'original';
      }
      return $size;
    }
    add_filter( 'avf_alb_lightbox_image_size', 'custom_alb_lightbox_image_size', 10, 2 );
    

    here both (gallery and masonry-gallery) will be influenced.

    #1465060

    thanks! That worked!

    cheers

    Chris

    #1465069

    Hi,

    Great, I’m glad that @guenni007 could help you out. Please let us know if you should need any further help on the topic, or if we can close it.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.