Documentation

What if I want to override the lightbox theme?

This is done using the standard block override process:

  1. In the top level /blocks folder, create a folder called lightboxed_image and within this new folder, a folder called css
  2. Find within the folder /packages/lightboxed_image/blocks/lightboxed_image/css folder, the folder of the theme you wish to override and copy it into the new css folder created in step one.
  3. Edit the css file colorbox.css in this copied folder to change the lightbox appearance, and edit/place any graphics in the images folder next to it.

Can I change the way the lightbox effect works?

Sure, override the controller.php file for the block - in that you'll see the code that generates the jQuery call to apply colorbox. Edit that as per the ColorBox usage instructions.

Why is the caption text very plain?

The caption text has not be styled so it doesn't look out of place in an existing theme. To apply a style, edit your theme's stylesheet, adding in rules for .lightboxed-image-caption and .lightboxed-image-caption-content. Note that the lightboxed-image-caption div is automatically set to the width of the thumbnail image.