Lightbox 2 is a JQuery-script developed by Lokesh Dhakar used to display images in an overlaying box. It can also be used to make galleries and can be found at www.LokeshDhakar.com/projects/lightbox2
Questions tagged [lightbox2]
452 questions
1
vote
1 answer
Styling the content of Lightbox2 popups
I'm using Lightbox2 to display a node within a Lightbox iframe popup (using rel="lightframe" within a link).
Is there a way to pipe CSS into this iframe so I can style the contents the way I want them?
(I actually don't understand why using a rule…

james6848
- 1,657
- 3
- 25
- 39
1
vote
2 answers
Lightbox by Lokesh Dhakar disableScrolling jumps to top of the page
As the title says, I have this problem. The option to disable scrolling simply applies
html.lb-disable-scrolling{overflow:hidden;position:fixed;height:100vh;width:100vw;}
To the html. Upon changing to set it to body instead of html and removing…

KitreC
- 23
- 5
1
vote
1 answer
why showImageNumberLabel option does not affect lightbox default setting?
I added 3 images in one page that one link triggers them, completely standard.
1
vote
0 answers
Lightbox caption area is too narrow
I followed some advice from others to rearrange the order of the JS code in order to make the caption and lb-close float to the top.
I also added a breakpoint for a more responsive image flow (esp as my images fill up the page upon…

Clara Kuo
- 19
- 1
1
vote
0 answers
Lightbox2 data uri's cut off on Edge/IE
I'm using lightbox2 to display a data uri on Edge/IE11. Tiny images work fine while larger images(Not huge) get cut off at some point. Edge/IE don't have full support for data URI's but, if you use the debugger to cut paste the data uri from the…

Alex Collins
- 560
- 5
- 18
1
vote
1 answer
Lightbox 2 Navigation Symbols not appearing
Lightbox shows the enlarged image in a popup, but nothing else. No title and no navigation and closing symbols, no frame-creating animation behavior. I must use chrome's back arrow to return to the original image. I tested Lightbox in…

user1107199
- 559
- 2
- 7
- 17
1
vote
1 answer
How can i disable the next/previous photo buttons in Lightbox2?
The reason i want to do this is because when I am on a timeline and click a photo of a post, Lightbox2 modal opens and i have that next and previous buttons.
I have disabled the "image x out of x" showing under every photo but i can't find a way for…

ivan savvidis
- 21
- 5
1
vote
0 answers
Lightbox2 - How to add a description to the open image (not caption)
I'm having some trouble adding text to the open lightbox image using HTML and CSS. I thought it was a caption but eventually figured out that's not it. Here's myy code:

Amy Lee
- 11
- 1
1
vote
2 answers
How to change the caption font of in Lightbox?
I am using jQuery developed about lightboxes, and it is amazing.
However, I saw that the font of the captions and it don't fit to my website style...
I wanted to know if someone had an idea about how to change the webfont of this captions...

Lamouchedu6
- 11
- 2
1
vote
0 answers
Image LightBox jQuery
I'm trying to create a Lightbox for Image.
You can see Perfectly working demo of this code here https://jsfiddle.net/hibbard_eu/zwk954Ln/
It's working fine for me except it's not showing the cross symbol to get back to previous page.
Here's the…
user8733268
1
vote
2 answers
How to set the maximum height of the viewport to the height of the browser window?
I'm very far from an expert, but I have got the code all working pretty much how I want - I can make my galleries, and the viewport opens and displays my images, all my options work how I want etc.
What does happen which is undesirable for me is…

Garrick Darts
- 11
- 3
1
vote
1 answer
add options to the lightbox2 while using WordPress without plugin
I included Lightbox into my self made WordPress-Theme - but without using a plugin. I used this script: