Hi,
I appreciate you don’t support plugins but I’m using a plugin that should make my bbpress thumbnail attachments into clickable lightbox images IF I add in the correct CSS and REL lightbox attribute. I’m assuming X theme has Lightbox already active, so I just need to fill in the gaps.
Is the REL attribute just ‘lightbox’?
Do I need to add in any JS to make this work? The plugin allows me to add a css class. I found this JS which I tried adding:
$(document).ready(function() {
// Scan the webpage for all class names of 'bbthumb' that is seen.
$('.bbthumb').each(function(){
// For each class name of 'bbthumb' found, go to the parent item of that thumb and apply the rel attribute.
$(this).parent().attr('rel','lightbox');
});
});
Is this JS code needed to make lightbox work on these thumbnails which are given the CSS class ‘bbthumb’?
Thanks in advance.