Lightbox Shortcodes
The easiest way to add shortcodes to your posts and pages is to use the Shortcode Generator located beneath the post or page editor
Parameters
- href
- title
- group (group for a gallery)
- width: (optional)
- height (optional)
- iframe: true,false
- photo (forces Lightbox to display a link as a photo)
Lightbox examples
[lightbox title="Title" href="http://thetraveltheme.com/wp-content/uploads/2010/11/seymourpowell_aircruise_1.jpg"]Single Image[/lightbox] [lightbox group="portfolio" href="http://thetraveltheme.com/wp-content/uploads/2010/11/shutterstock_17532754.jpg"]Grouped Photo 1[/lightbox] [lightbox group="portfolio" href="http://thetraveltheme.com/wp-content/uploads/2010/11/shutterstock_64124014.jpg"]Grouped Photo 2[/lightbox] [lightbox group="portfolio" href="http://thetraveltheme.com/wp-content/uploads/2010/11/shutterstock_32041471.jpg"]Grouped Photo 3[/lightbox]
Lightbox for Elements
[lightbox title="Trigger by image" href="http://thetraveltheme.com/wp-content/uploads/2010/11/seymourpowell_aircruise_1.jpg"]<img src="http://thetraveltheme.com/wp-content/uploads/2010/11/seymourpowell_aircruise_1.jpg" alt=""/>[/lightbox] [lightbox title="Trigger by button" href="http://thetraveltheme.com/wp-content/uploads/2010/11/shutterstock_32041471.jpg"][button size="medium" bgColor="#0062c3"]Lightbox[/button][/lightbox]
Lightbox with iframe
[lightbox title="Quickbeds Cheap Hotels" href="http://www.quickbeds.com" iframe="true"]Quickbeds (Iframe)[/lightbox]
