Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #364811

    Hi there, I am using a masonry gallery. When you click a thumbnail it opens that image in a lightbox. I want to be able to increase the maximum size of the image which is loaded. It looks like these are being scaled to 1030px (I think!) max height, on bigger monitors this looks too small.

    1. where is the code for me to do this?
    2. do I need to edit the native file or is this something I can do in the wordpress?

    Many thanks :)

    #365009

    Hi Carerra!

    It should be displaying the fullsized image there. Send us a link and we’ll take a look.

    If your screen size is small then the magnific popup will constrain the image so it fits inside the screen size.

    Best regards,
    Elliott

    #365018

    .

    • This reply was modified 10 years ago by Carerra.
    #365021

    .

    • This reply was modified 10 years ago by Carerra.
    #365025

    .

    • This reply was modified 10 years ago by Carerra.
    #365032

    Hi Elliot, thanks for the reply (sorry for the spam above I can’t work out how to delete a reply?!)

    The “fullsize” image is being displayed. What I want to do is change the size of this “fullsize” image. How do I do this?

    The maximum image being displayed is 1030px x 687px. If I have a huge screen this looks tiny.

    I want to be able to upload an image say 2000px wide and have that load if the screen is big enough. Do you know what I mean?

    Some where the code resizes the image. Where is this line of code?

    Thanks!

    #365424

    Hey!

    Oh I see. Try adding this to the bottom of your functions.php file.

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

    Best regards,
    Elliott

    #366092

    Thanks Elliot :)

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Change maximum size of lightbox images?’ is closed to new replies.