[Deprecated] Using the FooBox Lightbox plugin instead of the default Thickbox
If you use GravityView 2.10 or newer, this article is not relevant. GravityView now uses the Fancybox lightbox script and has a framework for adding new lightbox script support.
Here's a plugin to have GravityView use the Featherlight lightbox instead of Fancybox.
GravityView uses the WordPress-included Thickbox plugin to generate the lightbox for images and PDFs.
You may want to use a different lightbox solution. If you use the FooBox Image Lightbox plugin, this is how you can override the GravityView lightbox to use the FooBox lightbox instead:
Paste the following code into your theme's functions.php file (see how):
// GravityView: Override the default lightbox by FooBox add_filter( 'gravityview/fields/fileupload/link_atts', 'my_gv_image_link_atts', 10, 2 ); function my_gv_image_link_atts( $link_atts, $field ) { $link_atts['class'] = 'foobox'; return $link_atts; }
And there you go: images will now be using Foobox instead of the GravityView (and WordPress) default!