NO LIGHTBOXES ?

6.38K 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?

Answered question
0

It reminds me of an escape game, where you need to find the right trigger, just like the dog in Dog Escape stops on a dime to press buttons. I came across this while sipping coffee and thought, why not use a delegate like Rahul suggested, or wrap images in answer.php?

Answered question
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 ?