-
AuthorPosts
-
April 1, 2016 at 2:04 pm #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,
marioApril 1, 2016 at 2:41 pm #606680Hey 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,
YigitApril 4, 2016 at 12:00 pm #607500Hey 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,
marioApril 5, 2016 at 12:06 pm #608209Hi!
can you show us an example of what you want to achieve please?
Best regards,
AndyApril 5, 2016 at 12:28 pm #608231Hi,
unfortunately i don’t have an example of what i’m trying to achieve. here’s a screenshot, wich hopefully explains:
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,
marioApril 7, 2016 at 7:36 am #609395Hi!
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,
IsmaelApril 7, 2016 at 10:15 am #609463thank you Ismael, that works great!
regards,
mario -
AuthorPosts
- The topic ‘preview image of gallery as magnified section’ is closed to new replies.