I’m using the smooth-scroll class in two menu items. When on the home page, they are supposed to scroll to the target section (GenerateBlocks container). At the moment, they snap to the section and not scroll.
Also, if I’m only using the #ID format (and not the full URL), is there any way I can add the full link somewhere, so that when not on the home page, users can still be taken to those IDs?
in Customizer > General – have you enabled the smooth scroll option? If you have can you link me to your site so i can see the issue.
The second part, simplest way would be to add a duplicate menu item for each of those links.
Then your existing menu item for use on the home page add this class: home-show
And for the menu items with the full URL add this class: home-hide