• Hello…
    I installed the new version of WP (2.5.1) and since the lightbox script doesn’t work anymore, I searched around and found Lightview.

    Now I have it installed, but it doesn’t work in WP. I tried installing it on a simple html file on my comp to see if it was working and it dit, so I just did the same thing with within my WP installation.

    The only thing that could have change between my try on the plain html file and in WP is the place I put the code to make lightview work….

    This is the head of my header.php file:

    <head profile="http://gmpg.org/xfn/11">
    
    <link rel="stylesheet" type="text/css" href="css/lightview.css" />
    <script type='text/javascript' src='/js/prototype.js'></script>
    <script type='text/javascript' src='/js/scriptaculous.js?load=effects'></script>
    <script type='text/javascript' src='/js/lightview.js'></script>
    
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; Blog Archive <?php } ?> <?php wp_title(); ?></title>
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    Anyone know what would be my problem? Maybe it’s the fact that I refer to 2 css files in there, but I was doing the same thing with lightbox before and it was working properly.

    I sooo need help with this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • There’s no problem with 2 or more css files linked in.
    Most likely the lightview isn’t being triggered. To trigger the lightview you probably need to add rel=”lightview” or class=”lightview” to your image code inside the post. To know for sure read the lightview usage info. meanwhile, why don’t you use a lightbox plugin which adds js and adds triggers automatically… such as this which adds triggers or this which does it all best of luck.

    Thread Starter OnCleSAm

    (@onclesam)

    Thanks for the response.
    I finally found what was my last problem (of a long series!)… simply, I had to change the path of the script and put instead of
    src='/js/prototype.js'
    I wrote the whole URL. Logically, I wouldn’t have needed to do that, but heh… whatever, it works fine now!!

    And I knew about the plugins, I just happen to be quite stubborn and wanted to do the whole thing myself… you learn more that way 😉

    Yep I know about stubborn.
    I’ve been looking for an automatic slideshow plugin and it looks like there isn’t one available. So I’ve started to build my own. I has a lightbox built into it. And will be able to create a list of images automatically based on where it is.
    watch for SuperSlider.

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

The topic ‘Lightview and wordpress give me headaches’ is closed to new replies.