Questions tagged [lightbox2]

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

452 questions
1
vote
3 answers

Lightbox2 pageload trigger

How can I trigger a lightbox2 body on load. I need a popup when user enters a site. Thanks in advance.
Subhojit Mukherjee
  • 701
  • 3
  • 10
  • 24
1
vote
1 answer

How to open a scrollable PDF or iframe with lightbox2?

I need to open a PDF file in a Lightbox and I was trying with Lightbox2 but it doesn't seem to work I did find an old answer that stated to use iframe inside data-lightbox but only the first page it is displayed because Lightbox opens my PDF file…
al404IT
  • 1,380
  • 3
  • 21
  • 54
1
vote
0 answers

Lightbox2 adds an extra image at the end of full screen image set

I've just noticed that Lightbox2 (https://github.com/lokesh/lightbox2) is duplicating or adding extra images at the end of the full screen version of the image, everything else works fine. When viewing I click on the next image arrow for the next…
1
vote
0 answers

Uncaught ReferenceError: lightbox is not defined

I am making a web site in node js with a handlebar template. I have followed the instructions shown in the doc. But getting an error that Uncaught ReferenceError: lightbox is not defined My CSS and js files are in the public/dist/lib folder and my…
Jayna Tanawala
  • 475
  • 10
  • 27
1
vote
0 answers

lightbox2 module with webpack results in missing images

Still fairly new to webpack. I am outputting the webpack start js file to wwwroot\assets\js\Dist\start.js This is my webpack file const path = require('path'); const outputPath = './wwwroot/assets/js/Dist'; const sourcePath =…
LukePerrin
  • 235
  • 5
  • 17
1
vote
1 answer

How can I implement lightbox in Laravel 8

I'm trying to implement image gallery using lightbox but it's not working these are the script I've called in the head
1
vote
1 answer

How can I change the default image size of this lightbox #lightbox2?

I'm trying to build a gallery website an i'm using the lightbox2 of this guy: https://lokeshdhakar.com/projects/lightbox2/ Can somebody tell me, where I can change the default image size? I want the picture in full screen size. The default image…
Daniel
  • 57
  • 6
1
vote
1 answer

Lightbox2 CSS Webpack Cant Resolve

I am using lightbox with NPM and webpack. I import the SCSS like so, as I would normally do //lightbox2 @import '~lightbox2/dist/css/lightbox.min'; but webpack then gives me this error webpack_1 | ERROR in ./app/app.scss…
1
vote
1 answer

Drupal's Lightbox2 doesn't appear to work with content inserted via javascript

I'm creating ajax for a Drupal site which loads up new image galleries that need to be lightboxed. The problem, best I can tell, is that lightbox doesn't notice whenever a new anchor is written to the DOM by Javascript. Is this indeed my problem? …
JnBrymn
  • 24,245
  • 28
  • 105
  • 147
1
vote
0 answers

Flowplayer + Lightbox2 - only one of those working on one page

As in title, I can't get flowplayer to work on the same page with lightbox2 (I use this last one to display galleries). When I put lightbox2 and flowplayer js's at the beginning of the page, nothing works. If I put only flowplayer js's, it works,…
Peter
  • 33
  • 1
  • 5
1
vote
4 answers

How to include both lightbox and easyPaginate Javascript libraries in code? (is it even possible?)

I want to include both these JS libraries in my code and have them run simultaneously. http://st3ph.github.io/jquery.easyPaginate/ https://lokeshdhakar.com/projects/lightbox2/ Both websites give information on how to use the libraries. I tried…
1
vote
0 answers

How do I auto load Lightbox 2?

I want the image to auto start but page opens with text links. The links work to open he box and the box works correctly but I want the box to open on page load instead of having to click a link. I have tried many combinations of auto start script…
steve
  • 11
  • 1
1
vote
1 answer

Issue with lightbox2 modal not displaying images upon deployment

noob here and this is my first question. I am having issues with the lightbox2 modal not displaying images when I deploy the website. The modal appears to work with the exception of displaying the images. The modal also works perfectly on my text…
1
vote
0 answers

Set the order of lighbox items

This is for the jQuery plugin Lightbox2 Is there a way to set the order of items when the lightbox is open? I have a layout with every item absolutely positioned, and, I think, because they are out of DOM order they cycle through the lightbox in a…
MrDirby
  • 181
  • 6
1
vote
1 answer

portrait images not displaying correctly - much too tall

I have several dynamic lightbox galleries on my site (this is for the revamp of our current site and is not live yet). Everything works, but for some reason, and I cannot for the life of me figure out why, my portrait images are coming out very…
Nate
  • 11
  • 1