Demo site: Lightbox not working

I was intrigued by the demo kit provided on GitHub (as it seemed to solve something for a client of mine with the shop element) so I installed it and got it working locally.
But both local as on a server the Lightbox is not working for me.
Anyone experienced the same issue.
I haven’t changed anything to the code of the portfolio/about page.
So not sure why it is not working.
I tried different PHP settings.
The Kirby demo itself presents well on my browser, my own install (without changing much) doesn’t.
Any help is appreciated.

There is no about page in the demokit?

Just tested the portfolio subpages in demokit, and the lightbox works for me without issues. Lightbox is a small JavaScript file, probably the same as in our Starterkit.

Just to be sure: I am talking about this demokit: GitHub - getkirby/demokit: A demo setup for trykirby.com
I downloaded it to check again.

It seems when you delete: “<?= $site->demoExpiryHuman() ?> <?= $site->demoExpiryHuman(true) ?>.” something happens so the Lightbox doesn’t work anymore?

This code can be found in logo.php in the snippets.

Yes, because it breaks the JS at some point where the span is needed.

Thanks for helping out btw!
Not sure I entirely get your explanation.
I remove 1 block code in the frontend not related to any JS and the JS stops working.

I removed the whole block:
<footer> This demo expires <?= $site->demoExpiryHuman() ?> (based on your activity), latest <span class="absolute-time" data-timestamp="<?= $site->demoExpiry(true) ?>"><?= $site->demoExpiryHuman(true) ?></span>.</footer>)

Still have to digg deeper to understand what is going on, but I reckon I have to remove the function of demoExpiryHuman & the accompanying demo plugin?

You will understand better what’s happening if you open the console and check the error. If happens because the span with the class “absolute-time” is then missing, so it is related to the JavaScript.

But why don’t you just copy the lightbox JS into your project together with the required markup and you are good to go, alternatively, use the lightbox from the Starterkit.

Thanks for your prompt reply. I was looking into the wrong place! Should solve the problem indeed.