Customize and/or deactivate Kirby 4 lightbox

Hi!

I’m trying to understand how the Kirby lightbox is working, and how to tinker it, but there’s nothing helpful in de docs/forum.

I’d like to be able to activate or deactivate it depending on the pages/blocks.

And also to add a navigation between images of a gallery (with arrow keys or mouse clicks).

Thanks for your help!

Hi there and welcome to the forum.

The lightbox is just something implemented in the Starterkit as an example. The whole Starterkit is meant as a starting point to learn from how Kirby works, by no means a theme of some sort. It is not part of Kirby, therefore, you will not find anything in the documentation, apart from the basic overview.

In general, the frontend is all yours, so you can do what you like there.

The lightbox is triggered via the data-lightbox attribute attached to the ankers around images, see for example the album.php template. So you could set this attribute based on some condition.

Hi skynebula & welcome.

I’m currently working on a Kirby-based client site and found the default/example Kirby lightbox limited for the same reasons.

I replaced this with SimpleLightbox which is still nicely minimal but provides a wee bit more control, including the navigational functionality you require.

Thanks for your answer.
But do you have at least a link or a doc somewhere about the lightbox you embeded in the kit?

See Overlay captions in Starterkit album lightbox? - #7 by texnixe

If you need anything that you can configure, choose another lightbox, there are enough options.

The one delivered with the Starterkit is very basic on purpose.

If you need a theme, check out available themes on our website

Or