Lightbox without stack

What css (and js?) do I need to add to my custom files to get the lightbox to function without a stack?
When I swap the stack to blank the lightbox ceases to function. I dont want to load all that stack data just for lightbox.

Hey @timewarp23,

I believe you are using the old lightbox shortcode which is Stack-based. Choosing blank means you will need to create your own lightbox. Custom coding a lightbox is beyond the scope of our theme support.

What we recommend in this case is use the Cornerstone builder and use the Modal element which is our modern lightbox.

I’m familiar with the modal as Lightbox but would hardly call that a modern solution. Within the stack being able to assign a class and add a line of raw text js was a simple and elegant solution. Re-engineering an existing site to build countless modals doesn’t feel like a great solution.
But, just adding the js to the global does.

1 Like

Hello @timewarp23,

When we released the new Modal elements, the old lightbox code was deprecated. This is also why the Blank and Starter stack, it is no longer supported. It is best that you use a 3rd party lightbox and insert the lightbox JS code in Custom Code > Global JS.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.