Using FooBox with the WordPress Core Lightbox

WordPress Image and Gallery blocks have their own “Expand on click” lightbox option. FooBox can take over that intent so editors can use the core control while visitors see FooBox.

This compatibility feature works in FooBox Free and Pro. It is opt-in and disabled by default.

1. Enable the compatibility setting

Go to FooBox → Settings → General → Compatibility and enable WordPress Lightbox.

FooBox Compatibility settings including the WordPress Lightbox option

After enabling it, reopen existing posts in the editor so their block attributes can be synchronized, then save the post.

2. Convert a core Image lightbox

Select an Image block and enable the native WordPress Expand on click option.

The native WordPress Image block Expand on click control

FooBox then:

  • enables itself on the Image block;
  • links the image to its media file;
  • disables the core lightbox flag to avoid duplicate overlays;
  • exposes the normal FooBox controls for style, theme, group, dimensions, and captions.
A converted core Image block showing the FooBox controls

Select the outer Gallery block and choose the native WordPress lightbox link option.

The native WordPress Gallery lightbox link option

FooBox switches the Gallery to media links, assigns a group, mirrors the FooBox settings to its child images, and disables child core-lightbox flags.

A converted core Gallery showing its FooBox controls

4. Preview the result

The frontend opens one FooBox overlay rather than stacking FooBox and the core WordPress lightbox.

A WordPress core lightbox choice opening through FooBox on the frontend

Existing saved content

FooBox includes a frontend rendering fallback for existing Image and Gallery blocks that still contain core lightbox intent. Editing and saving the post is still recommended because it makes the conversion explicit in the block attributes.

Troubleshooting

  • The core overlay still opens: confirm the compatibility setting is enabled, reopen the post, and save it again.
  • Two lightboxes appear: check whether the theme or another plugin is forcing its own lightbox.
  • A Gallery opens as independent images: select the outer Gallery, confirm its FooBox group, and save.
  • You do not want automatic takeover: disable WordPress Lightbox compatibility and configure FooBox directly on the blocks you choose.

Resources

Find the right next step

Use this grid for documentation indexes, support routes, account links, affiliate resources, and download pages.

Documentation

Search setup guides, product docs, and troubleshooting articles.

Support

Open a ticket with product details so we can help quickly.

Licensing

Review account, renewal, refund, and license information.

Pricing update

Monthly & Lifetime plans are currently not unavailable

We’re not offering these payment options right now. Leave your name and email and we’ll let you know as soon as they return.

NameEmailNotify Me

No spam - Unsubscribe anytime