If you take a look at the website haloespresso.com.au/working/, you'll see that when you click on the "menu" option in the top menu, it scrolls to the menu id #pg-9-4. This is exactly what I am aiming for. However, on other pages, the menu is slightly different and the same link redirects to the home page with #pg-9-4 added to the end of it. The idea here is to have the link from another page open the home page but scroll directly to the menu section. Despite my efforts, I cannot seem to figure out why it keeps jumping back to the top instead of staying at the specified spot. It briefly goes there for a split second as the page loads, but then immediately returns to the top. I am struggling to understand what is causing this issue and hindering the basic HTML functionality that should keep me anchored to the designated menu area.
I would greatly appreciate any assistance with resolving this matter, as my expertise does not extend much beyond html/css and simple jquery.