A drop-in replacement for Lightbox 2 and similar plugins, shedding the bulk of Prototype and Scriptaculous. Improved for mobile devices.
wp-jquery-lightbox-folder to the /wp-content/plugins/ directory[gallery link="file"] By adding a rel="lightbox" attribute to any link:
<a href="image-1.jpg" rel="lightbox" title="my caption">image #1</a>
Note the use of title-attribute to set a caption
To group sets of related images, follow step 2 but additionally include a group name in the rel attribute:
<a href="image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
To disable lightboxing of an image link, just set any other rel-attribute: rel="nobox"
Keyboard support: Arrows, P(revious)/N(ext) and X/C/ESC for close.
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 files. jqlb_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.
Requires: 3.3 or higher
Compatible up to: 3.3.2
Last Updated: 2012-2-1
Downloads: 165,749
2 of 3 support threads in the last three weeks have been resolved.
Got something to say? Need help?