NO LIGHTBOXES ?

4.30K viewsUpdates
0

Hi again, I just noticed that AnsPress refuses all lightbox plugin in questions, answers, comments, …

Is there a way of getting around the issue?

1

May be its because question, answer and comment form are loaded using ajax and you need to rebind them or just use jQuery delegate.

commented on answer

Hee.. do you means add Jquery Lightbox function in answer.php ?

Why you need lightbox?

I only want the images of all AnsPress Pages to have a lightbox or a link to see them in a bigger size.

I managed to do it, simply used a lightbox plugin that triggers on “rel=lightbox” and added these lines in answer.php

$(‘img’).each(function() {
$(this).wrap(““);
});

Thanks again for your time

@Axel_Ben can you tell us more where exactly to put those lines ?