Site logo

Archived topic

Secondary Mobile Nav not Sticky anymore

5 replies · Started by Roy on January 16, 2022

Viewing posts 1–6 of 6

Dear support,

Our Secondary mobile menu used to be sticky on Mobile.
We only wanted to have the secondary menu sticky because the main nav is quite big for mobile users.
Randomly, it stopped working and every code I've tried won't make it sticky for mobile.

Can I get a code that works?

Thanks in advance.

Regards!

Hi Roy,

Useposition: sticky !important; instead of display: sticky !important;

Let me know :)

Not working for me, is #secondary-navigation the right tag?

As you can see, the CSS on your site(display: sticky !important;)should be modified to position: sticky !important;
https://www.screencast.com/t/qUs92Y3O

The CSS file is called yellow pencil, do you have an idea?

Yes it's a css plugin, but every instance of this part of code is already the way you say it should be.
Can you give me the direct name and path of the CSS file so I can try find it in FTP?

Thank you in advance.

Hi there,

the CSS added by Yellow Pencil is added as inline style in the Head of the site:

https://www.screencast.com/t/nkAQM35h

So thats being saved somewhere in your database - not in a separate stylesheet.

I would suggest asking the plugin author for some advice.

This archived topic is closed to new replies.