Dear kriesi-team,
I use the ajax portfolio for the site http://www.christinbacher.at/.
The images of every portfolio item are displayed in a list.
By clicking on a picture from the list it opens in a separate “kind-of-light-box” image window. I would like to disable that possibility on enlarging by clicking on pictures (remove the links), and just link special pictures to other website.
How can I change this?
I look forward to your response,
Christin
Hi nini_bacher!
Edit config-templatebuilder > avia-shortcodes > portfolio.php, find this code on line 642:
$output .= " <a href='".$img[0]."' class='portolio-preview-list-image' title='".$description."'><img src='".$img[0]."' title='".$title."' alt='".$alt."' /></a>";
Replace it with:
$output .= " <a href='".$img[0]."' class='portolio-preview-list-image noLightbox' title='".$description."'><img src='".$img[0]."' title='".$title."' alt='".$alt."' /></a>";
Remove browser cache then reload the page. You can also add this on your custom.css or Quick CSS to disable the image link entirely:
.portolio-preview-list-image {
pointer-events: none;
}
Cheers!
Ismael
Hi Ismael,
works great, thank you! :)