Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

7.1 Anchor Links - FREE!!!!


rwp

Question

I've been working hard on this, on and off for a few months.

I've had it working for a while, but it was never perfect.

Today I finally decided to try and wrap it up.

If you are interested, I will need you to send me a PM. I need to get a little more testing done to make its its 100%.

This is where I am at so far. If I am missing anything, let me know.

  • Allows for custom link text, so you will be able to see mysite.com/home#customtext, not a bunch of gibberish
  • Correct anchor position, right at the top of the section, not below the padding by adding an anchor in a code block
  • Correct location on a page refresh
  • Correct location on a redirect from a different page
  • Fast and efficient, the only hold up in the code is waiting for 7.1 to load

THIS IS FREE!!!

This isn't a plug in, to be honest I don't even know what a plug in looks like for squarespace.

This is code I wrote, that I use on my customers sites. Its been changed, evolved, modified, over the past 6 months, and anyone is welcome to use it.

Anyway, if anyone wants to test it out, and help me get to the final stage of this, let me know via PM.

Thanks.

Link to post
  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Popular Posts

Sent a PM, sounds exciting !

Tested the code. Worked perfectly! ✌️

6 answers to this question

Recommended Posts

  • 0

Hi! I been able to set up one anchor link on my main navigation page that works/scrolls fine, but I've had no luck using them on any other page... this sounds like it might be a solution! Do you mind sharing your code? Thanks for your help!

Link to post
  • 0

Awesome, thanks for the quick reply! I'm using a fixed header that shrinks when you scroll down the page. Do you know what modification I need to make? 

Link to post
  • 0

You will need to basically subtract the height of the header, factoring in the change of the smaller header, because that element doesn't exist until you scroll down.

 

Assuming squarespace didn't change any of that in the latest update.

 

Link to post

Create an account or sign in to comment

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


×
×
  • Create New...