Tagged: 

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

    Hi,

    I have looked all over and can’t find a solution.

    I have a bunch of animated gifs which I want to link to lightbox to view larger, but it is calling the default ‘large’ resize which is a static image. Does anyone know where I can alter this to call the original image so that the animation will still play.

    I will then redo the styling in css for responsive.

    Thanks,
    Jay

    #526163

    Hi Jason!

    Please add following code to Functions.php file in Appearance > Editor

    add_filter( 'avf_avia_builder_masonry_lightbox_img_size', 'enfold_customization_change_popup_size' );
    function enfold_customization_change_popup_size( $size ) {
    	return 'fullsize';
    }

    Regards,
    Yigit

    #526184

    You rock Yigit. Thanks for the quick reply and I will defo bookmark this, but I found another solution which will definitely improve performance too.

    The lightbox only calls the ‘large’ size if the original is bigger than that of the ‘large’ size dimensions, otherwise if smaller, no ‘large’ size created, no ‘large’ size called. Keeps performance better with smaller image size and less additional code.

    Luckily I only have a few that need manual resizing.

    Thanks again for fast support… as usual!!!
    Jay

    #526187

    Hey!

    You are welcome, we are always happy to help!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘change lightbox/prettyphoto image size to original’ is closed to new replies.