Hi Martino,
Why are you using JavaScript to hide the header, that seems like a really bad way to do it?
Why aren’t you using the standard way and what my plugin uses which is media queries – in my mind that would solve all your issues?
All the best
Hi there,
thanks for the reply.
I realize I didn’t explain very well.
Let me rephrase:
I’m using a Javascript to change the body class so I can hide the header when the user is scrolling down, like here.
Your plugin does something similar, adding a RMOpened class to the menu when it’s open.
It would be nice to have a class applied to the body so I could control other element of the page at the same time.
For example to stop the hiding of the header if the menu is open.
Thanks for your time!
Hi there,
So why can’t you use the class that my plugin adds? I’m a little confused as to what more you want added to the body, you can just use your classes appended with the RMOpened class and then they will only take affect when the menu is open?
All the best
Hi,
thanks for the reply.
Yes, your plugin add a class when the menu is open, but the class is added to the div id=”responsive-menu” which is fine to control the menu but it doesn’t give control to other elements of the page.
I’ve an header which I show in combination with the mobile menu: it would be nice to control it when the menu is open.
To be more clear I show the “click-menu” div along the header: when a user scroll down the whole header disappear. I would like to avoid the disappearing of the header (and the “click-menu”) when the menu is open.
You can see a live version of this here.
Thanks for your time!
m.
Hi there,
Right ok I understand what you mean now! I can surely add that the menu adds a class to the body itself for when the menu is open for you.
All the best
Nice work,
thanks for adding it 🙂
Hi Martino,
Glad I could help, lemme know if you need anything else in future!
All the best