Site URL: http://www.passerbymagazine.com
Hi,
I really like the design of the Wells template, but it's super frustrating that the images in the gallery that have clickthrough links, well the links don't work. How can we make the links work. Help would really be appreciated!
I've inputted this code that I found on here, but it doesn't seem to work:
<script>
var currentPageBaseURL=window.location.href.split("?")[0];
Y.on("domready",function(e){
Y.io(currentPageBaseURL+"?page=1&format=json-pretty", {
on:{success: jsonLoaded}
});
function jsonLoaded(err,data){
var jsonResponse = Y.JSON.parse(data.responseText);
var items=jsonResponse.items
Y.all("#thumbList .thumb, #slideshow .slide").each(function(e){
var thumbId=this.getAttribute("data-slide-id");
for(var i=0;i<items.length;i++){
if(thumbId==items[i].id && items[i].clickthroughUrl){
this.setAttribute("data-clickthrough-url",items[i].clickthroughUrl).on("click",function(e){
e.preventDefault();
e.stopPropagation();
window.location = this.getAttribute("data-clickthrough-url");
})
}
}
})
}
});
</script>
How can we add a link