Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #606661

    Hi, i’m using the avia masonry gallery in collaboration with a lightbox link, and i’m quite happy with it so far.
    now here´s my question: is there any way to define the preview image of the gallery as a greatly magnified section of the fullscaled lightbox image?

    thanks in advance,
    mario

    #606680

    Hey Mario_M!

    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';
    }

    Best regards,
    Yigit

    #607500

    Hey Yigit,
    thank you for answering so quick!
    Here´s where i am at the moment:
    i pasted the code into my functions.php via ftp-client (could’t find the editor, you mentioned).
    after i did that, i discovered the edit preview-function in the media/gallery menu… which was there all the time, apparently!

    so i generated a preview section, but no matter what, i can’t make it appear on the site! the gallery allways shows the fullscaled image …
    i tried both, to do the editing in the media-menu and in the masonry gallery-menu.

    what effect should the additional code in the functions.php have exactly? where do i find the changes?

    thanks in advance,
    mario

    #608209

    Hi!

    can you show us an example of what you want to achieve please?

    Best regards,
    Andy

    #608231

    Hi,
    unfortunately i don’t have an example of what i’m trying to achieve. here’s a screenshot, wich hopefully explains:
    screenshot

    i want a magnified section of the image as preview in the masonry gallery and the fullscale image in the lightbox.
    i can do the settings in the gallery- or mediamenu (like in the screenshot) but it has no effect on the site, unless i choose “all formats” in which case the lightbox image is cropped too of course.

    thanks and best regards,
    mario

    #609395

    Hi!

    There are pre-designated thumbnails for the masonry gallery element so scaling the image is not going to work. What you need to do is to pre-cropped the thumbnail then upload it in the masonry gallery. Set the original image as Custom Link of the thumbnail.

    Regards,
    Ismael

    #609463

    thank you Ismael, that works great!
    regards,
    mario

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘preview image of gallery as magnified section’ is closed to new replies.