Is there a setting to enable a lightbox modal in my theme for default WP gallery block?

[ad_1]

I’ve used gallery/lightbox plugins in the past, but now that I’m using Gutenberg blocks and Kadence blocks, I just wonder if a lightbox modal isn’t already baked in somewhere if I just knew the right code to drop in functions.php to activate it.

It seems like there would be since the gallery block options are pretty limited without that functionality. Linking to an attachment page or just opening up a single image in the browser window are basically options nobody really wants, right?

[ad_2]
1 Comment
  1. It’s a little buried in the menus if you are using Kadence.

    Appearance -> Customize -> General -> Performance -> Enable Lightbox

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer