Closing container Box by clicking a button

Dear Sir,

My Wix Website is www.paris-avenues.com

Please advise how can I close container box #2 when clicking on button #27 (the Grey long button in the middle of the picture’s bottom) ? noting that the container box and the button has already other codes related to their actions such as :

  1. The Container Box has a code keeping it open as long as the mouse is inside its boarders
  2. The Button has a link to open a page of product group search results

Attached is a screen shot of the content box

Waiting for your reply.

Hi,
Do you refer to a lightbox or a container box?
If you refer to a box, you can simply hide it or collapse it. If you refer to a lightbox, you can use the close function.

Good luck!
Tal.

Hi Tal,
Thanks for your reply, I am referring to a container box not a light box, I am not well versed in code, kindly advise what would be the example code that hides it or collapses it when I click on a button ?

Hi @ahmedfghamry ,
I gave hyperlinks to the API reference. There are explanations of each function and code example.

Good luck!
Tal.

Hi Tal,
I have read them but couldn’t write the code to hide it on clicking on a button

@_tal Hi Tai,
Happy new year,
Is it possible to make a button perform double function on a click (like open a page and hiding or closing a content box) when the button is clicked ?
Thanks & Best Regards