Plugin này chưa được cập nhật với 3 phiên bản mới nhất của WordPress. Nó có thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress mới nhất.

Lightbox Gallery

Mô tả

From 0.7.1, the default view changed to Colorbox due to the license regulation by the plugin directory. If you would prefer the prior Lightbox to Colorbox, you need to get the script from the setting page.

The Lightbox Gallery plugin changes the view of galleries to the lightbox.

  • Lightbox display of Gallery
  • Tooltip view of caption of images
  • Displays the associated metadata with images
  • Divides Gallery into several pages
  • Extends the default Gallery options
  • Additional settings are set in the option page
  • Switch to the Highslide JS display

You can also make regular images appear in a lightbox. See Faq.


If you have translated into your language, please let me know.

Are you interested in other plugins? See the following site CMS x WP.

How to use

How to use this plugin is basically the same as the way to add [gallery] which has been adopted
by over WordPress 2.5. Lightbox Gallery plugin automatically converted the default view of gallery
into the lightbox view. Photo captions are displayed as tooltips. Photo descriptions are displayed
when the lightbox pops up.

Advanced settings

There are three additional options to extend the shorttag [gallery].

  • lightboxsize

The image size when the lightbox pops up. The default is medium, but you can change to full.

[gallery lightboxsize=”full”]

  • meta

Defines whether the exif information is displayed. The default is false.
If you want to show the photo info, set true. The exif shown on the lightbox includes camera body,
aperture, focal length, shutter speed, and created timestamp.

[gallery meta=”true”]

  • class

Adds a class attribute of the gallery. The default is gallery1.

[gallery class=”gallery2″]

  • không theo dõi

Adds the attribute, rel=”nofollow”. The default is false.

[gallery nofollow=”true”]

  • from, num

Defines from which and how many photos are displayed.
If the number of photos is over that of num, the navigation will be shown.
You can use the navigation option almost same as the wp_link_pages function.

[gallery from=”5″ num=”10″]

  • pagenavi

If you would like not to show the navigation, set 0. The default is 1.

[gallery num=”10″ pagenavi=”0″]

  • colorbox_settings

You can set the additional settings for Colorbox. See Colorbox official site.

[gallery colorbox_settings=”transition:’fade’, slideshow:true”]

Known Issues / Bugs


  1. Deactivate the plugin
  2. That’s it! 🙂

Ảnh màn hình

  • Lightbox Gallery

Cài đặt

  1. Activate the plugin through the ‘Plugins’ menu in WordPress
  2. Just upload images and write down the [gallery] shortcode in the post content.
  3. That’s it! 🙂

Lightbox Gallery will load ‘lightbox-gallery.css’ and ‘lightbox-gallery.js’ from your theme’s directory if they exist.
If they don’t exist, they will just load the default ‘lightbox-gallery.css’ and ‘lightbox-gallery.js’ that come with Lightbox Gallery. This will allow you to upgrade Lightbox Gallery without worrying about overwriting your lightbox gallery styles that you have created.

  • Edit the lightbox-gallery.js and check the path of line 2 according to your settings.
  • There may exist localized images in ‘images’ directory. Replace default images with them.

Hỏi đáp

  • How can I make regular images appear in a lightbox without [gallery] shortcode?

Just add rel=”lightbox” into “a” tag. Here is a sample.

<a href=”image.jpg” rel=”lightbox” title=”this is a caption”>
<img src=”thumbnail.jpg” alt=”” />

  • How can I handle multiple galleries in one page as separate ones?

If you would like to handle galleries separately, add different class names
into [gallery]. ex) [gallery class=”gallery2″]

  • Java Script does not seem to be loading?

Check out your theme has wp_head() in the header and wp_footer() in ther footer.

Đánh giá

8 Tháng Tư, 2017
I rename my wp-content folder for every project. This plugin does not recognize that.
15 Tháng Mười Hai, 2016
It just show all images from the Media
Đọc tất cả 44 đánh giá

Người đóng góp & Lập trình viên

“Lightbox Gallery” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

“Lightbox Gallery” đã được dịch qua 2 ngôn ngữ. Cảm ơn những người tham gia dịch vì đóng góp của họ.

Dịch “Lightbox Gallery” sang ngôn ngữ của bạn.

Muốn tham gia phát triển?

Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.

Nhật ký thay đổi


  • Bugfix: JavaScript errors.


  • Bugfix: JavaScript errors.
  • Code cleaning.


  • Code cleaning.


  • Code cleaning.


  • Colorbox settings.
  • Colorbox CSS.
  • Code cleaning.


  • Code cleaning.


  • CSS loading in a child theme.


  • Backward compatibility: caption loading.
  • Code cleaning.


  • Responsive output.
  • Gallery code renewal.


  • Farsi (fa_IR) – Ehsan Razavi


  • Bugfix: support for WordPress 3.5.


  • Danish (da_DK) – Jacob Voldby
  • Bugfix: rel=”lightbox”


  • Bugfix: lightbox image path.


  • The default view changed to Colorbox.
  • Slovak (sk_SK) – Viliam Brozman


  • Due to the license restriction, the highslide script has been removed.
  • Bugfix: key transition.


  • Swedish (sv_SE) – Anders Martensson
  • Bugfix: button images of sub directory WordPress.


  • Option to add rel="lightbox" automatically in the post insert.
  • Code cleaning.
  • Bugfix: addition of esc_attr().
  • Croatian (hr) – Tomislav Konestabo
  • Hindi (hi_IN) – Outshine Solutions
  • Simplified Chinese (zh_CN) – leonanu


  • Lightbox and Highslide path.
  • Czech (cs_CZ) – Petufo
  • Germany (de_DE) – Michael Wruck and Tacitus Media
  • Romanian (ro_RO) – Anunturi Jibo


  • jQuery lightBox plugin license changed.
  • Hungarian (hu_HU) – Zsolt Vereb and Feriman


  • Enforced loading option of lightbox gallery scripts.


  • Bugfix: JavaScript error.


  • If you set the class attribute into [gallery], galleries are handled separately. ex) [gallery class=”gallery2″]
  • Support for the Highslide JS.
  • Support for the javascript loading in the footer.
  • Turkish (tr_TR) – Hakan Demiray


  • Brazilian Portuguese (pt_BR) – Emmanuel Carvalho
  • Belorussian (be_BY) – ilyuha
  • Combine jquery.lightbox.css and jquery.tooltip.css into lightbox-gallery.css


  • Default thumbnail size and lightbox size.


  • Spanish (es_ES) – Daniel Tarrero
  • Polish (pl_PL) – Otmar
  • Bugfix: translation miss.


  • Dutch (nl_NL) – Peter Arends


  • French (fr_FR) – BenLeTibetain


  • Bugfix: JavaScript.
  • Russian (ru_RU) – Fat Cow


  • Bugfix: page navigation.


  • Loads lightbox-gallery.js from your theme directory.
  • Italian (it_IT) – Gianni Diurno.


  • from and num attributes for gallery division.
  • Additional settings are set in the option page.


  • Bugfix.


  • Bugfix.
  • Output jquery and lightbox scripts only in the replated page.


  • Bugfix.


  • Bugfix.


  • không theo dõi attribute.


  • ISO attribute


  • class attribute.


  • rel="lightbox" to make regular images appear in a lightbox.


  • Initial release.