-
AuthorPosts
-
February 18, 2018 at 6:00 pm #913972
Hi, two problems with enfold lightbox:
1- when I open image in lightbox, rectangular image remains too small (7360 × 4912 is loaded size). I would like a wider image.
2 – if page has many images the long scroll bar remains in lightbox when I open an image
thanks
ps: this is the site for a photographer who would like to see his images in full screen
February 19, 2018 at 3:16 am #914102Hey czar,
We would like to check it, however your site is still underconstruction, can you give us access so we can check it?
Best regards,
NikkoFebruary 19, 2018 at 8:17 am #914158Sorry Nikko, this token is valid for the next 3 days
thanksFebruary 19, 2018 at 8:52 am #914163a small note in advance : are you shure you are loading a 7360px wide image?
if so – it is completely unnecessary to load such sizes. Even if gallery does load full size images. On default i think Enfold would load the “large” one.
Your dimensions will be ok for 2.6m x 1.7m ScreensFebruary 19, 2018 at 3:43 pm #914314thanks guenni
I know, but I was desperate I tried all measures including fullFebruary 19, 2018 at 6:53 pm #914455well – you can influence the image is taken on galleries or masonries by adding some code to functions.php of your child-theme:
function avia_change_gallery_thumbnail_link($link, $attachment, $atts, $meta) { $link = wp_get_attachment_image_src($attachment->ID, "full"); return $link; } add_filter('avf_avia_builder_gallery_image_link', 'avia_change_gallery_thumbnail_link', 10, 4); function avia_change_masonry_thumbnail_link($size){ return "full"; } add_filter('avf_avia_builder_masonry_lightbox_img_size', 'avia_change_masonry_thumbnail_link', 10, 1);
- This reply was modified 6 years, 9 months ago by Guenni007.
February 19, 2018 at 6:59 pm #914459February 19, 2018 at 7:19 pm #914468fantastic, it seems solved problem, which is probably not just mine
thanks guenni!February 19, 2018 at 7:33 pm #914479by the way if you got only an image alb solo and have lightbox link on that:
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
February 19, 2018 at 7:36 pm #914482 -
AuthorPosts
- The topic ‘PROBLEMS WITH ENFOLD LIGHTBOX’ is closed to new replies.