Colorbox is a lightweight customizable lightbox plugin for jQuery.

Installs: 139

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 2



dev-master 2014-07-17 01:35 UTC

This package is auto-updated.

Last update: 2024-03-24 18:28:03 UTC


Colorbox is a lightweight customizable lightbox plugin for jQuery. See http://www.jacklmoore.com/colorbox for more information about colorbox

This module povides colorbox features for silverstripe pages, including:

  • Photo Gallery
  • Youtube videos

Maintainer Contact


Put colorbox directory into your SilverStripe root directory.


Colorbox is triggered by adding the appropriate 'class' or 'rel' attribute to your links If you define classes in your editor.css file, they should show up in the TinyMCE style dropdown.

Giving the link a title/description will show up as a caption on the box.


<a class="photo" href="myphoto.jpg" title="My photo"><img src="myphoto_thumb.jpg"></a>

<a href="myphoto1.jpg" rel="slide"><img src="myphoto1_thumb.jpg"></a>
<a href="myphoto2.jpg" rel="slide"><img src="myphoto2_thumb.jpg"></a>


<a class="youtube" href="http://www.youtube.com/watch?v=hMDhyDFqtz8">Watch video</a>

Any type of youtube link should work.

Customising Styling

It is possible to customise the look of the colorbox. You will need to create your own theme files.

  • themes

    • currenttheme_colorbox

      • css

        • colorbox.css
      • images

        • ...appropriate images...

Some example themes can be obtained from the colorbox original dowload at http://www.jacklmoore.com/colorbox.


Link goes to image/video, rather than showing in box

This probably means the javascript isn't working for some reason. Check that the script is even included on your page.

The box shrinks down to a small shape.

You may have assigned the wrong class to the link.