WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Lightbox Plus Colorbox

Lightbox Plus Colorbox permits users to view larger versions of images, simple slide shows, videos and content all in an overlay.

Lightbox Plus Colorbox doesn't work

Well, yes, it probably does. It's used by thousands of websites and if it doesn't work for you then it is likely because there is some problem with how it interacting with other JavaScript on your site.

The most common cause for it not working is a jQuery conflict cause by a theme or a plugin that either does not properly instantiate jQuery or instantiates a very old version of jQuery.

Here are things to try in order to see what the problem is.

  1. Check jQuery version and make sure you are using the lastest included in WordPress
    • If it's an older version or not enqueued correctly it will cause problems
    • It may be in your theme or another plugin
  2. You may be lacking wp_footer() function in your footer.php of your WordPress theme.
    • Look at the default theme to see how it is implemented and add it into your theme.
  3. Try deactivating all plugins one at a time besides lightbox plus and see if if it starts working
    • If it does work after deactivating on then there's a plugin conflict
  4. If deactivating plugins doesn't work then there might be a conflict with your theme
    • To isolate you can try an different theme and see if it works
  5. Try changing to a different lightbox style/theme and see if that makes a difference
    • There may be a style conflict of some sort
  6. Try deleting the plugin and reinstalling - it may have not completely updated correctly.
    • You'll have to reset your settings so you might want to write them down.

It works for some images and not others, why not?

The problem may be with your WordPress theme, mangling image display properties. Try using another theme, that doesn't interfere with posted images.

It also seems that some more recent version of WordPress (or perhaps the plugin is causing this in some way I am not aware of) do not automatically add the link to the full size image. You must also make sure that when you are adding an image from the WordPress media dialog control you must make sure there is a link to the image in the Link URL field. The easiest way to get the correct link is to click on the link to image button beneath the field. Visual depiction of what is required when adding images in order for lightbox to function correctly.

Lightbox Plus Colorbox doesn't work properly in browser X, Y, or Z (Chrome, Safari, Firefox, Opera, Explorer 6, 7, etc.)?

Yes it probably does, the problems may be the same as above or there may be a conflict with another plugin or a style conflict. It has been tested in Chrome, IE 7+, Firefox 2+, Chrome, Safari 3+, Opera 8+ since development began.

Does Lightbox Plus Colorbox work with PHP 4? If not, why not?

No it doesn't. PHP 4 reached end of life on August 8th 2008 (about 6 years ago.) WordPress no longer supports PHP 4 and all plugin developers are encourage to follow. The best solution at this time is to ask your host provider to upgrade to PHP 5.

You will know that Lightbox Plus Colorbox is not working because of PHP if you receive the following error:

Plugin couldn't be activated because of fatal error

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /path/to/plugin/classes/filters.class.php on line 81

Can I use this plugin and Lightview Plus, Lightbox 2 (either one), jQuery Colorbox, WP lightbox JS Plugin, Fancybox etc at the same time?

Maybe, but probably not as they will most likely interfere with each other as they usually modify the image URLs. Other image overlay plugins may possibly be compatible.

Can I add my own styles and images for the overlay?

Yes, you can easily create additional styles by checking the use custom styles checkbox. It will copy the existing styles to wp-content/lbp-css and you can modify any of the existing styles. You can all adding a new folder to that directory and using the existing styles as examples create your completely custom styles.

How does Lightbox Plus Colorbox differ from other Lightbox plugins for WordPress?

Performance wise the Colorbox jQuery plugin is smaller and generally faster and has more options than most lightbox JavaScript plugins. The regular expressions that handle the text are more robust handling a wider variety of characters and in addition it will also grab the image title from the image to use for the overlay image caption.

Does Lightbox Plus Colorbox work with WordPress' built in gallery

Yes it does. There are few simple requirements however. You must set Link thumbnails to: Image File or use [gallery link="file" for the gallery options. You must check Use For WP Gallery box under Other Lightbox Plus Colorbox Settings

When resetting/re-initializing LBP the setting do not appear correctly when the page reloads, what gives?

This problem is only apparent in Chrome and Opera. It seems to works fine in Internet Explorer, Firefox and Safari. There are some browser related issues and I am investigating the problem at this time. For Chrome the settings are being saved but not displayed immediately, click on the Lightbox Plus Colorbox link under appearance and you will see the current settings. Opera for whatever reason is completely failing to save re-initialization settings, you must manually set and save them or use another browser. And, no, it doesn't make sense since it's server side activity.

Additional FAQs from Colorbox

For addtional information please see Colorbox FAQ for information about the jQuery plugin used by Lightbox Plus Colorbox.

Other Problems

At present due to other commitments and that the prugin is provided freely we can offer no support and it is provided as is.

You can get community support for Lightbox Plus Colorbox via the support forums.

Please do not contact Jack Moore the author of Colorbox for issues with Lightbox Plus Colorbox.

Known Problems

  • Does not work correctly with W3 Total Cache if you are using automatic minify settings. You can manually set up minify to work correctly bypassing Lightbox Plus Colorbox (jquery-colorbox.min.js)
  • No support for iPad (if someone wants to donate an iPad to me I will guarantee support)
    • It generally seems to work though I just don't support it as I don't have an iPad.
  • In some instances performance may be slow in older versions IE - this may be due to plugin conflicts or slow JavaScript performance in IE.
  • Lightboxed video does not seem to work in IE on locally installed sites, for example viewing in IE 7.0 while running XAMPP, this seems to be a Windows only issue.

Plugin Conflicts

  • Jetpack Carousel - When carousel is activate it take precedence over Lightbox Plus Colorbox for image use as of LBP 2.x
  • Flickr Mini Gallery - Verified. Download hot fix for Flickr Mini Gallery (includes instructions) as of LBP 1.6.3
  • Tabbed Widgets - Verified as of LBP 1.6.3
  • DMSGuestbook - Un-verified as of LBP 1.6.3
  • Gengo - Un-verified as of LBP 1.6.3

Note: Some of these conflicts were with very old versions of Lightbox Plus Colorbox and may be mitigated

Requires: 3.6 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-24
Downloads: 1,094,924

Ratings

4 stars
4.2 out of 5 stars

Support

5 of 32 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

4 people say it works.
2 people say it's broken.

100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,5,5 100,1,1 100,1,1
100,1,1 83,6,5 100,1,1 100,1,1 100,1,1
67,6,4 100,1,1
0,1,0 80,5,4 80,5,4 100,1,1
0,2,0 80,5,4 100,2,2 100,2,2 100,2,2 33,3,1 100,10,10 100,1,1
80,5,4 100,1,1 50,2,1 43,7,3 67,3,2 70,10,7 100,1,1
72,32,23 100,3,3 100,2,2
0,2,0 0,1,0
75,4,3 50,2,1
100,8,8
50,2,1
87,23,20
100,3,3
100,3,3
83,6,5
0,1,0
100,5,5
86,7,6 73,11,8 100,1,1 73,15,11 100,1,1 50,4,2
100,1,1 86,7,6 80,5,4
100,1,1 78,50,39
84,19,16
100,4,4
76,21,16
75,20,15 0,1,0 100,1,1 0,1,0 100,1,1
54,13,7 67,3,2 100,2,2 100,3,3 57,7,4 83,6,5 63,8,5 100,2,2
80,5,4 76,33,25
100,2,2
100,4,4
100,7,7
67,3,2
50,4,2
100,7,7
100,1,1
0,1,0
100,4,4 67,6,4