Hi support,
when using portfolio grid ajax I would like to disable the link of the images leading to a lightbox display.
Could you please tell me how?
Thanks a lot
Claus
Hi LarryLayouter!
Open up /enfold/config-templatebuilder/avia-shortcodes/gallery.php and change line 202 from this.
$class = $counter++ % $columns ? "class='$imagelink $custom_link_class'" : "class='first_thumb $imagelink $custom_link_class'";
To this.
$class = $counter++ % $columns ? "class='noLightbox $imagelink $custom_link_class'" : "class='noLightbox first_thumb $imagelink $custom_link_class'";
And line 218 from this.
$output .= "<a class='avia-gallery-big fakeLightbox $imagelink $crop_big_preview_thumbnail $custom_link_class' href='".$link[0]."' data-onclick='1' title='".$description."' ><span class='avia-gallery-big-inner' $markup_url>";
To this.
$output .= "<a class='avia-gallery-big noLightbox fakeLightbox $imagelink $crop_big_preview_thumbnail $custom_link_class' href='".$link[0]."' data-onclick='1' title='".$description."' ><span class='avia-gallery-big-inner' $markup_url>";
Regards,
Elliott
Hi Elliott,
thanks for your advice – unfortunately this does neither suppress the link nor the overlay that is shown on hover …
Did I express myself clearly enough?
Hope for a new advice … :)
greetz
Claus
Hi!
The code should work. Please try to remove browser cache then reload the page. If it still doesn’t work, try to add this to the Quick CSS field:
#top .portfolio-preview-image .avia-gallery .avia-gallery-big {
pointer-events: none !important;
}
Best regards,
Ismael
Hi Ismael,
your css code is the key to make it work – thanks a lot!
greetz
Claus