Create sticky collapsable menu on mobile phone
-
Hi there,
I have used some CSS to make the menu of my site sticky on a smartphone, but I can’t get it to collapse after being clicked, and due to the proportions the menu then takes up most of the screen. (You can of course click to close it so this isn’t a disaster, it would just be better.)
Is there some code to handle both the sticky menu AND collapse, or can someone suggest something for the collapsing part? It’s possibly due to my lack of knowledge with JQuery (/anything technical) that it’s not working as I have pasted a couple of pieces of code to no avail so far.
Thank you so much!
PS – here is the CSS I have used just for the sticky menu:
@media screen and (max-width: 767px) {
.navigation-top {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99999;
}
.admin-bar .navigation-top {
padding-top: 45px; // Padding to allow space for the admin-bar when present
}
}The page I need help with: [log in to see the link]
- The topic ‘Create sticky collapsable menu on mobile phone’ is closed to new replies.