does custom link work on gallery ( setting: use custom link – fallback is image link) on your installations ( newest Enfold 5.6.6)
ok on a fresh install – it works – so I think there must be something in the child theme functions.php that is preventing it from working correctly.
Edit: ok – this known snippet to set the lightbox size to full from 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);
disturbs the correct behavior of custom_link setting.
by the way – if the setting: “use custom link – fallback is image link” – is made – it would be nice if there is an option to preserve the lightbox behavior on images without custom_link !
“custom-link fallback is lightbox image link”. that would be a great option
Hi,
It sounds like you have sorted out this issue, did you want to summit a feature request for thw “custom-link fallback is lightbox image link” option?
Best regards,
Mike
I think this would be a good option to choose. So – yes, please pass it on to Günter
Hi,
I created a feature request for your idea, thanks.
Best regards,
Mike
Thanks – you can close the topic now
or does that filter can do that job?
avf_alb_masonry_img_custom_link_fallback
and how to set then to lightbox if fallback … ?
Edit: on one page it works this way as wanted – so i had to inspect the other installation what hampered the desired way.