Jump to content

Help with Anchor Links

Recommended Posts

Site URL: http://clover-fennel-ea3x.squarespace.com

Hi all,

I need a bit of help with the anchor links set up. I set up an anchor link to go to a specific part on my website with a smooth scroll feature which works great. However when I press the back button on my browser, it goes back to the part of the webpage where the anchor link button is placed, instead of going back to the previous webpage (in the video I shared, I would want it to go back to the home page instead). How can I make it so that instead of scrolling back up to the button, it just returns to the previous page I was on? I attached a video showcasing my issue to make things easier and just want to let y'all know that I have almost 0 coding experience so please go easy on me haha. Thank you all in advance.

website screen recording.mov

Edited by aksoma15
Link to comment
On 4/5/2021 at 11:53 AM, aksoma15 said:

Site URL: http://clover-fennel-ea3x.squarespace.com

Hi all,

I need a bit of help with the anchor links set up. I set up an anchor link to go to a specific part on my website with a smooth scroll feature which works great. However when I press the back button on my browser, it goes back to the part of the webpage where the anchor link button is placed, instead of going back to the previous webpage (in the video I shared, I would want it to go back to the home page instead). How can I make it so that instead of scrolling back up to the button, it just returns to the previous page I was on? I attached a video showcasing my issue to make things easier and just want to let y'all know that I have almost 0 coding experience so please go easy on me haha. Thank you all in advance.

website screen recording.mov 10.64 MB · 1 download

Which code did you use for the anchor link

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio plugin
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.