Fixing Nav Bar Issues: Scroll Links and Mobile Menu Problems
路
Hi, I鈥檓 having an issue with my nav bar. All my nav links scroll to a section on the home page. I set each link to scroll to that section of the page which works. But I have a couple of separate pages and this causes an issue. I tried to get around this by setting the link to a URL with /#[section-id]. This also works except with the mobile nav menu. If I am on the home page in mobile view (hamburger menu), and I click on a link, it scrolls to the section but the nav menu doesn鈥檛 close. I鈥檝e also tried unlinking the nav component on the home page and creating a duplicate nav link with a new class name but for some reason this changes the nav bar component links on the other pages too.