Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Lightbox in a wordpress loop Re: Lightbox in a wordpress loop

#141725
matt25
Participant

Sorted, changed the code to

$(document).ready(function(){
$(“a.stillPost”).click(function(){
$(“.lightboxBG”).fadeIn(300);
$(this).next().fadeIn(300);
return false;
})
$(“a.close-panel”).click(function(){
$(“.lightboxBG, .stillLightBox”).fadeOut(300);
})
$(“.lightboxBG”).click(function(){
$(“.lightboxBG, .stillLightBox”).fadeOut(300);
})
})