[gallery link="file"]
rel="lightbox"
attribute to any link tag to activate the lightbox. For example:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
Optional: Use the title
attribute if you want to show a caption.
<a href="images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
No limits to the number of image sets per page or how many images are allowed in each set. Go nuts!rel="nobox"
wp_footer();
just before the closing </body> tag of your theme, or you will break many plugins, which generally use this hook to reference JavaScript filesjqlb_apply_lightbox($your_content, "any ID");
It returns a string with all image links lightboxed, grouped by "any id"wp_localize_script()
, used to configure this plugin and many others.
Takes the WordPress admin bar into consideration.
Resizing code manages both height and width and never destroy aspect ratio.
Scaling routines now maximize images fully while taking captions into account.
Added support for browser resizing and orientation changes - allowing images to remain optimally scaled and centered.
WP Lightbox 2 rely on rel="lightbox"
instead of class="lightbox"
, since rel is what all the previous *box-scripts used.
Replaced explicit IMG-urls with divs styled through the CSS. (see: jqlb_loading
and jqlb_closelabel
divs).
Can grab titles and captions from the WordPress Media Gallery-output ([gallery], "insert attachments" etc).
Grabs image title if the link lacks one
Honors empty titles.
Uses WordPress API to localize script (with safe fallbacks).