Colorbox is a JQuery plug-in that will expand a thumbnail image to full size when clicked. We use the colorbox module to bridge between Drupal and the plug-in.
Here's how to add a colorbox image to a web page:
- Create a new page via Content/Add, or edit an existing page.
- In the WYSIWYG window (the one that looks like a Microsoft Word toolbar), click the toolbar's Add media icon (
).
- Click on the Choose File button and select a file from your local drive.
- Click on the Submit button.
- In the Format drop-down box, choose Preview.
- Click on the Submit button.
- Click (once) on the resulting image.
- Click the toolbar's Link button (
).
- In the URL box, type: /files/image-name.jpg where image-name.jpg is the filename you just uploaded. Allowable image formats are JPG, PNG and GIF.
- Click on the Advanced tab.
- In the Advisory Title box, type: Click to Expand
- In the Stylesheet Classes box, type: colorbox
- Click the OK button.