Pat1 Posted July 25, 2020 Share Posted July 25, 2020 Site URL: http://www.taupestudios.com Hi everyone, I have a problem with my navbar on mobile. Whenever I scroll back up on my website, the navbar is "sliding" downwards (I would like it to be fix and not move). I have tried injecting this code as suggested by a friend, but nothing happened... Any suggestions? <script> function removeEventListeners(element, listenerMap) { Object.keys(listenerMap).forEach(function (name) { var listeners = listenerMap[name]; listeners.forEach(function (object) { if (name == 'scroll') { element.removeEventListener(name, object.listener); } }); }); } removeEventListeners(window, getEventListeners(window)); </script> Link to comment
tuanphan Posted July 26, 2020 Share Posted July 26, 2020 Hi. Have you solved it yet? Pat1 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Solution rwp Posted July 26, 2020 Solution Share Posted July 26, 2020 @media screen and (max-width:799px) { .header-announcement-bar-wrapper.shrink { padding: 6vw !important; } } Pat1 1 Link to comment
Pat1 Posted July 26, 2020 Author Share Posted July 26, 2020 3 hours ago, rwp said: @media screen and (max-width:799px) { .header-announcement-bar-wrapper.shrink { padding: 6vw !important; } } This worked! Thanks a lot!!! rwp 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment