Hidding the content box and opening a page on button click


Dear Sir,
I have a menu tab which opens a content box on hover and when I click it then it opens a page,
I need it to open the conent box on hover and if I click it I need to close the content box and open the page.
My site is www.paris-avenues.com
Attached is a screen shot showing the menu tabs I am explaining
Awaiting your kind reply with the code to accomplish this
Best Regards
Ahmed

Hi Ahmad ,

It’s because you still running the hover function when you have been redirected to that page.
what else you can do is :

Use wix-location instead of linking the button.
Now, add onClick function, then you can link to the page and hide the context box.

  1. wixlocation.to(‘URL’);
  2. $w(“#contextBox”).hide()

hope this helps!
Best,

Mustafa

Thanks Mustafa, it worked great