Making a custom button close a lightbox/popup.


I created a lightbox/popup to open automatically when landing on my home page.

For this lightbox I have created a UX Block, and I choose a “pre-designed layout” from the Flatsome studio. The layout has a button ‘Shop Now’ on it.

I used the plugin PopUpMaker to call the UX Block, using its shortcode. All good so far.

BUT: How do I get the ‘Shop Now’ button to close the lightbox? Is there a code-snippet I can insert in the link-field or class-field of the button? (I know that there’s a also a close button in the top right corner).

The home page in question is (the lightbox in question will automatically popup at first visit).

I hope that this is something you can help me with!

Thank you!