Support » Plugins and Hacks » Lightbox Plugin not working

Lightbox Plugin not working

  • particulartastes


    I cannot get the lightbox plugin to work. It worked fine on another site of mine, and I haven’t changed anything. Is there any reason why it wouldn’t work with my chaoticsoul theme?

    Looking at my page source, I have this in my <head>:

    <script language="JavaScript"> lb_path = "http://particulartastes.com/wp-content/plugins/lightbox/"; </script>
    <link rel="stylesheet" href="http://particulartastes.com/wp-content/plugins/lightbox/lightbox.css" type="text/css" media="screen" />
    <script type="text/javascript" src="http://particulartastes.com/wp-content/plugins/lightbox/prototype.js"></script>
    <script type="text/javascript" src="http://particulartastes.com/wp-content/plugins/lightbox/scriptaculous.js?load=effects"></script>
    <script type="text/javascript" src="http://particulartastes.com/wp-content/plugins/lightbox/lightbox.js"></script>

    and this is the code around the images:

    <a href="http://particulartastes.com/images/cars/lexus/ls600h1.jpg" rel="lightbox"><img src="http://particulartastes.com/images/cars/lexus/smls600h1.jpg" /></a>

    Do you see any reason why lightbox wouldn’t work? The image just opens in a new window.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Andrew Ozz
    WordPress Dev


    As far as I know, Lightbox needs class="lightbox" to activate and rel="lightbox" to show images in a set, but maybe this plugin works without the class?

    Anyways, I’ve made a similar plugin that uses a lot smaller js script, only 9KB and works similarly to lightbox. It can be activated for all links pointing to an image (no need for class=…). Have a look at:

    Shutter Reloaded WordPress plugin

    Normaly it is because of prototype.js
    Use the file provided with Lightbox

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Lightbox Plugin not working’ is closed to new replies.