Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Addresses #3549797
Uses new Turbojet fork of the colorbox library to ensure compatibility with jQuery 4.
If you upgrade from an earlier version of this module to 2.2.0 or later, you must replace your colorbox plugin with the Turbojet fork of the colorbox library. The easiest way to do that is:
Delete web/libraries/colorbox and all its contents.
Re-install the colorbox plugin using drush colorbox:plugin
The 2.2.x branch uses the new Turbojet fork of the Colorbox library. Users of this branch must use the Turbojet fork. The 2.1.x branch will remain compatible with the previous library by jacklmoore.
This release introduces Drupal 10 compatibility. Due to API changes, it requires a minimum Drupal core version of 9.3.x.
There are no functional changes in this release.
Branching from 8.x-1.x. All future enhancements and Drupal 10 compatibility fixes will go into this branch. A full release 2.0.0 is targeted on or before the release of Drupal 10.
Release 8.x-1.9 introduced a change that was only compatible with Drupal 9.3 and higher. This change has been reverted, and compatibility with 8.8 through 9.2 has been restored.
Additional changes:
- Fix issue 3272796: Passing null to parameter #1 ($haystack) of type string to strpos() is deprecated
- Warn against installing unnecessary parts of the DOMPurify archive.
Note, colorbox_load is now restricted to internal Drupal paths only, and will not load external URLs. You can still use colorbox_inline with an iframe to load external content into a colorbox.
Colorbox for Drupal 8 is a image field formatter and nothing more, or less. The extra features like colorbox_load and colorbox_inline can be found in contrib.
OBS! Mobil detection was added to this release of Colorbox and it's on by default, i.e. Colorbox will not be active on small screens (mobile phones) by default. I personally don't think modals belong on small screens and therefor I made this choice.
If you really need/want to reactivate Colorbox on small screens go to "/admin/config/media/colorbox" under "Advanced settings" after updating to this version and turn of mobile detection.
* Followup fix to styles CSS since the Colorbox plugin removed the hover class in favor of CSS hover state some time back.
* Drush command now automatically renames the "colorbox-1.3.18" directory to "colorbox".
* Back-ported the Drush command improvements from Drupal 7 version.
If no major bugs show up this is quite likely the last release for Drupal 6.