Title: leightbox isn&#8217;t working
Last modified: August 18, 2016

---

# leightbox isn’t working

 *  Resolved [shmish](https://wordpress.org/support/users/shmish/)
 * (@shmish)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/leightbox-isnt-working/)
 * Hello,
    I modified a new theme on my computer using a local network (ie I used
   WAMP and installed wordpress on a virtual server). I modified a K2 theme and 
   implemented leightbox (a modified version of lightbox.js).
 * On the local computer everything works as expected. I then uploaded the theme
   to my web server. Now leightbox isn’t working. I’m pretty sure the paths are 
   okay, the header uses:
    `<script type="text/javascript" src="<?php bloginfo('
   template_directory'); ?>/js/lightbox.js"></script>` I’ve also tried it where 
   I enter in the exact path of the /js/lightbox.js (and /js/prototype.js). I also
   load a stylesheet for leightbox, and it loads okay.
 * As far as I can tell, there aren’t any other places where paths should be an 
   issue. I’ve enabled only plugins that were also enabled on the virtual server.
   Permalink structure is the same for both.
 * Any ideas on what is the matter?
 * thanks
 * 

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/leightbox-isnt-working/#post-447310)
 * the link there.. is that the one you are trying to get lightbox working on? I
   dont see any calls to the javascript file anywhere on that front page.
 *  Thread Starter [shmish](https://wordpress.org/support/users/shmish/)
 * (@shmish)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/leightbox-isnt-working/#post-447318)
 * the “about” menu in the upper right calls leightbox. the html basically works
   like shown here:
 * 
 * this is how it is supposed to be implemented, and it works on my virtual server.
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/leightbox-isnt-working/#post-447319)
 * nope. your misunderstanding me. I dont see any reference to the javascript file.
 * this:
 * `<script type="text/javascript" ... `
 * I see nothing like that, im not interested in the css 🙂
 *  Thread Starter [shmish](https://wordpress.org/support/users/shmish/)
 * (@shmish)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/leightbox-isnt-working/#post-447328)
 * Ahhh!
    Thanks, that was it. I don’t know why it wasn’t working, but I moved the`
   <script type="text/javascript"...>` up higher in the header and now it works.
 * The K2 theme has so much going on in it, it gets complicated…
 * cheers

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘leightbox isn’t working’ is closed to new replies.

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 4 replies
 * 2 participants
 * Last reply from: [shmish](https://wordpress.org/support/users/shmish/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/leightbox-isnt-working/#post-447328)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
