-
AuthorPosts
-
June 19, 2023 at 10:30 am #1411046
Hi,
For our website we have a custom post type that uses the standard lightbox of Enfold. The resoltion of some oms the images looks lower than the original. We do’n have any compression plugins in place. Can you help to figure out what is causing this?
Online version:
https://www.funda.nl/koop/aerdenhout/huis-42137139-tollenslaan-6/
and the image on our site: https://www.vanhuyse.nl/woningen/koop/woonhuis/aerdenhout/tollenslaan-6/
Left original image and right the lightbox on our site
Left original image and right the lightbox on our siteThanks for your help!
Beste ragrds, Rogier
June 19, 2023 at 11:03 pm #1411109there are different snippets for child-theme functions.php to influence the lightbox image source file.
for image galleries:
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);
for masonry image galleries:
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 for single image lightbox size:
function change_lightbox_size() { return "full"; } add_filter('avf_avia_builder_helper_lightbox_size','change_lightbox_size', 10);
June 21, 2023 at 5:53 pm #1411299Thank you for your response. Will try this.
Best regards, Rogier
June 21, 2023 at 9:07 pm #1411313June 22, 2023 at 11:57 am #1411369Hi,
Unfortunatily it’s not working. I’ve added this code and tried also fullsize instead off full but the 1030 size is loaded and not the full size off the image.
Do you’ve any suggestions? Example off the lightbox is found here: https://www.vanhuyse.nl/woningen/koop/appartement/haarlem/mr-jan-gerritszlaan-35/function change_lightbox_size() {
return “full”;
}
add_filter(‘avf_avia_builder_helper_lightbox_size’,’change_lightbox_size’, 10);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);Regards,
KeesJune 22, 2023 at 2:13 pm #1411379are these Enfold galleries? What ALB did you use to insert these images?
June 22, 2023 at 2:16 pm #1411380It’s an default Gallery which uses the Enfold magnify popup. It’s not an ALB block.
Regards,
KeesJune 22, 2023 at 2:28 pm #1411383ALB – sorry means only Advanced Layout Builder – so it is the native Enfold Gallery – but i see some tabs there
June 22, 2023 at 2:33 pm #1411386Thanks! Your question helped me solve the problem. It was hard in the template off the single page.
I’ve changed to ‘full’ and it works correct!
$photo = wp_get_attachment_image_src($foto->ID, ‘full’);Thanks a lot.
June 22, 2023 at 2:42 pm #1411389u bent van harte welkom
June 22, 2023 at 9:32 pm #1411422 -
AuthorPosts
- You must be logged in to reply to this topic.