Auto close expand collapse
Permalink
Is there a way to configure the expand collapse to auto close when clicking outside the div ?
Thank you
Thank you
thank you
Hello. I have the same question and I have done what you listed but am still having issues. I put the JS snippet in as well as added the Div. However, I would like to make sure that I am putting them in the right spots. Would you mind clarifying where exactly? Thank you so much!
You need to add the div just before ending the body tag. like:
And put the javascript in your header.php file, if still it will not work, then send me the page url where you did the trick. I'll look into it.
Rony
<div id="layer"></div> </body> </html>
And put the javascript in your header.php file, if still it will not work, then send me the page url where you did the trick. I'll look into it.
Rony
Hi ! Thanks for the reply .... might sound like a stupid question, but where is this header.php file ??
Many thanks
Many thanks
Usually within the Elements folder of your theme.
Are you saying I should creat a header.php file ? In my themes/elements folder I only have a misc.html file and a javascript and css folder ....
It can depend on the theme. Are you using a custom one or one from the marketplace? If so, which one? I will look for you.
I'm using my own theme.
You should define a empty div before ending the body tag. e.g.
And then a small piece of Jquery code.
But you need to put some css to accomplish this. Hope it will help.
Citytech