• Resolved shmish

    (@shmish)


    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

    https://www.alpinevisions.dryfly.ca

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    (@shmish)

    the “about” menu in the upper right calls leightbox. the html basically works like shown here:

    https://www.eight.nl/files/leightbox/

    this is how it is supposed to be implemented, and it works on my virtual server.

    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

    (@shmish)

    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.