Jump to content

Navbar Mobile

Recommended Posts

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
  • Replies 3
  • Views 285
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.