Member
Member
junko   2011-07-27, 14:25
#1
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:

`
<script type="text/javascript">
$(document).ready(function(){
$(".lightbox").colorbox({transition:"fade", arrowKey:"true",slideshow:"true"});
});
</script>
`
This is the code used for the images in `album.php` that I want to open in ColorBox:

`
<?php while (next_image()): ?>
[*]"><?php printImageThumb(getAnnotatedImageTitle()); ?>
<?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?
Administrator
Administrator
acrylian   2011-07-27, 15:37
#2
Please review the colorbox webiste the correct setup for several images.
Member
Member
gjr   2011-07-27, 16:44
#3
You need to use rel="", instead of class.
Member
Member
junko   2011-07-27, 17:15
#4
I can't believe I missed that.

Apologies for being a blind bat.

Thank you gjr and acrylian. This site is almost ready! Big Grin
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.