ColorBox - Next/Previous links

Having a little issue with the ColorBox navigation within the `album.php` page.

The issue is: they do not work. The next & previous buttons initially did not appear which forced me to add `display:block !important;` to line 12 of `colorbox.css`.

The next/previous images now appear however do not function.

This is my ColorBox JS code:

`

$(document).ready(function(){
$(".lightbox").colorbox({transition:"fade", arrowKey:"true",slideshow:"true"});
});

`
This is the code used for the images in `album.php` that I want to open in ColorBox:

`
<?php while (next_image()): ?>

<?php endwhile; ?>
`
As I understand it, any tag with the class `lightbox` should open in ColorBox. Within this gallery, there are 16 images so all 16 links should be treated as 1 gallery in ColorBox, or am I mistaken?

Does anyone have any ideas or come across something similar?

Comments

  • acrylian Administrator, Developer
    Please review the colorbox webiste the correct setup for several images.
  • gjr Member
    You need to use rel="", instead of class.
  • junko Member
    I can't believe I missed that.

    Apologies for being a blind bat.

    Thank you gjr and acrylian. This site is almost ready! :D
Sign In or Register to comment.