Jump to content

Anchor Links will not work properly

Recommended Posts

I have followed the steps here - https://support.squarespace.com/hc/en-us/articles/207135178-Creating-anchor-links

Code block has been added with 

<p id="form"></p>

And all buttons have the url slug https://www.cloover.se/home/#form

But it just keeps bringing me to the top of the home page, and not the form. When you then click on the 'contact us' button, at the top of the page, it then goes down to the anchor link. 

Please help. 

Cam

Link to comment

When you're linking internally on the website, you shouldn't be adding the this: https://www.cloover.se just /home/#form

You may also want to move the code block with the anchor text to the very top of the section.

Additionally, adding this to your custom CSS will animate the scroll rather than jumping:

html {
  scroll-behavior: smooth;
}

Let me know if that's enough to get it working correctly.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Hmm, this is strange, I can't see that you've set anything up incorrectly, so I'm not sure what to suggest, sorry about that!

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment
3 hours ago, kavsquires said:

I will submit a support ticket, but I am guessing that as this is a custom code error, it will not be something they will address.

Thank you for your response!

Thanks. 

I have also submitted one but I am really struggling to get anywhere with them. They keep thinking the URL slug or code is incorrect, when it is not. 

Link to comment
On 1/11/2023 at 5:01 AM, Cloovercam said:

I have followed the steps here - https://support.squarespace.com/hc/en-us/articles/207135178-Creating-anchor-links

Code block has been added with 

<p id="form"></p>

And all buttons have the url slug https://www.cloover.se/home/#form

But it just keeps bringing me to the top of the home page, and not the form. When you then click on the 'contact us' button, at the top of the page, it then goes down to the anchor link. 

Please help. 

Cam

This might be helpful. It’s the stuffs broken down.

https://sayreambrosio.notion.site/Anchor-Links-d00695f5e3754e5c8ddcac184175ce70

Edited by sayreambrosio
Updated code link
Link to comment
18 minutes ago, Cloovercam said:

Thanks, but sadly this still isn't working as expected. 😕 

Did you use this section?

 

How to link to anchor links on other pages

You can also link to anchors tags on other pages using the page url and the tag together.
Here’s an example.
/your-page#here
Link to comment

@Cloovercam Ignore that last comment about the section. I just checked it on my laptop and it's working as expected I think.

There's one spot where it hung up when clicking a button but that was my connection I think.

 

Link to comment
12 minutes ago, sayreambrosio said:

Have you tried a cache clear or private window?

I have, but it still doesn't seem to work as expected. I think i may have diagnosed what the issue is though. When I do try to get to my anchor link, it looks like it starts to scroll and then something stops it. When I expected further I could see that there are 3 errors being highlighted from a 3rd party tool 'calconic'. 

When I remove this tool from the homepage, the anchor links then works as expected! 

Issue is I like this tool and don't want to have to remove it... So will need to troubleshoot these errors! 

942239734_Screenshot2023-01-17at22_57_42.thumb.png.5e42e6e7dad6093fe7d072bcc4fafd42.png

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.