Jump to content

BahnNguyen

Members
  • Posts

    1
  • Joined

  • Last visited

BahnNguyen's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I followed the following tutorial and I was finally able to add a slide in menu on my WordPress site. However, I noticed that the body scrolls when moving up and down on my mobile phone. Can someone explain to me how I can disable body scroll when the menu is opened? Many thanks in advance! Tutorial: https://www.w3schools.com/howto/howto_js_sidenav.asp <script> function openNav() { document.getElementById("mySidenav").style.width = "100%"; } function closeNav() { document.getElementById("mySidenav").style.width = "0"; } </script>
×
×
  • Create New...