Custom Lightbox js library in Bricks Builder? How?

Hello, is it possible to use a different lightbox for the Image Gallery?
More precisely: How can I use a custom Lightbox js library in Bricks Builder… And if so, how?

Sorry if this might be a stupid question… I’m not a proffesional developer :bowing_man:.

But I really want to have a mouse wheel navigation for my image gallery lightboxes, which the native Bricks Lightbox does not offer.

Best Regards, Kai

1 Like

There are many ways: How to Properly Add JavaScript to WordPress (3 Top Methods) – Go WordPress

You can add the library via a code-block on the page, via ‘header code’ in settings, via a code-snippets plugin, via functions.php, via a template…

How you attach it to a gallery or image depends on the js - you’d need to read the docs… but given that Bricks ‘opens the page to you’ to add wrappers, attributes or classes to everything - it should be pretty straight-forward.

If you’re not a pro dev - make each step and then ask here again when you get stuck… but try a google/chatgpt or the js docs first… every day is a learning day ! :rofl: