Created
February 4, 2026 13:37
-
-
Save Crocoblock/620fb23832b3e2b8e76eba7a823f4496 to your computer and use it in GitHub Desktop.
JetEngine / Change args for gallery grid callback / Allow lightbox in Gallery Grid callback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter('jet-engine/gallery/grid/args', function( $args ) { | |
| $args['lightbox'] = true; | |
| // default args: | |
| // 'size' => 'full', | |
| // 'lightbox' => false, | |
| // 'cols_desk' => 3, | |
| // 'cols_tablet' => 3, | |
| // 'cols_mobile' => 1, | |
| // 'css_classes' => [ 'jet-engine-gallery-grid' ], | |
| // 'masonry' => false, | |
| return $args; | |
| } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment