WordPress.org

Ready to get started?Download WordPress

Forums

Lightbox Plugin not working (3 posts)

  1. particulartastes
    Member
    Posted 7 years ago #

    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.

  2. Andrew Ozz
    WordPress Dev
    Posted 7 years ago #

    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:
    http://www.laptoptips.ca/projects/wp-shutter-reloaded/

  3. truden
    Member
    Posted 7 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.