hi,
i would like to add the lightbox function to all small preview images of my posts. in my case i display them on a normal page with the blog post element of the avia builder. normaly the preview image i a direct link to the post. i would like to disable the link and have a lightbox effect insted.
thanks for your help!
best regards
philipp
Hey p_niedrich,
I’m not sure if I understand what you mean by that, could you post a screenshot highlighting the changes you would like to make or post a link to an example please?
Best regards,
Rikard
hey rikard,
here is an example page:
http://musikwerkstatt-eden.de/klavierlehrer/
on this page every teacher is one post. i deactivated the links and display them with the blog post element. i would like to have a lightbox effect on the images.
best regards
philipp
Hi,
Please go to enfold/includes/loop-index.php file and find following line
$link = !empty($url) ? $url : get_permalink();
and change it to following
$link = avia_image_by_id(get_post_thumbnail_id(), 'large', 'url');
We would recommend you to use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and apply the changes there :)
Best regards,
Yigit
hi yigit,
thanks a lot, it works perfectly! as always your support is really on top! good job!
best regards
philipp
Hi,
Glad we could help. Thanks for using Enfold :)
Best regards,
Nikko