-
AuthorPosts
-
May 6, 2020 at 1:32 pm #1210333
Recently I have noticed that clicking on images to enlarge them is now displaying a smaller sized file than the original. Here is an example:
Scroll down past the full screen slideshow. There are then 12x designs. Clicking on any of these brings up an image sized 1030×670 px. The original images are all 3000px wide. So this should be showing a really good quality image rather than this low res one.
I am using a GALLERY – small thumbnails – original size (no scaling) – using the Lightbox.
Is there perhaps a global setting that can change this so that the Lightbox uses the largest full size image?
Thanks
May 6, 2020 at 4:18 pm #1210374Actually I didn’t want to give any more advice when the right click is blocked. Why are you making it hard on the one who wants to help?
Anyway: for the lightbox image size there are some snippets depending on what is shown :
in your child-theme functions.php you can try this:
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);
or that:
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);
then the full image is taken instead of the large one!
if you like to enlarge the lightbox window – we will see when the above is done.May 6, 2020 at 4:20 pm #1210375Hiya,
Sorry I forgot that was still active! Will give both a try. Thank you.May 6, 2020 at 4:23 pm #1210377The second one has worked PERFECTLY. Thank you much appreciated.
May 6, 2020 at 4:37 pm #1210384What I do not quite understand is that your entire body remains scrollable. With the New Enfold, I thought that was fixed. It means Lightbox window is only scrollable if content is too big and background is fixed.
Did you change anything about that?
You can see here behavior of lightbox images what i mean: https://webers-testseite.de/abcdef/May 6, 2020 at 5:01 pm #1210392Hiya, No I haven’t changed anything to make this happen. To be honest I didn’t notice it.
I have placed the content in the functions.php file below.
I’m happy with it as it is anyway. So don’t worry on my account.Colin
May 7, 2020 at 6:49 am #1210614Hi Colin,
Thanks for the update, so everything is working as it should now then? Thanks
to @guenni007 for helping out :-)Best regards,
RikardMay 7, 2020 at 10:38 am #1210672All working fine thank you!
May 8, 2020 at 7:00 am #1210937 -
AuthorPosts
- You must be logged in to reply to this topic.