Hjanrobert Posted March 13, 2021 Share Posted March 13, 2021 Site URL: https://lemon-grape-sy9n.squarespace.com Hi, I am strugling with smooth scroll on anchor links placed in folders for my nav menu. The scrolling effect works when you already are in the folder, but when visiting the front page, for then visiting a link in a folder in "about us", the scrolling effect will not work, and the page will not show up (react) to the cursor clicking on the link. This happens when I place my jquery script in the "Code injection" header. If I remove the code, all links and pages works fine when pointing the cursor, clicking on each page and links. But I really want this code to work, so every anchor link and scroll to top button scrolls to the specific codeblock for each section. Can someone please help me figuring out what is wrong in the code? Link to comment
Beyondspace Posted March 14, 2021 Share Posted March 14, 2021 On 3/13/2021 at 8:31 AM, Hjanrobert said: Site URL: https://lemon-grape-sy9n.squarespace.com Hi, I am strugling with smooth scroll on anchor links placed in folders for my nav menu. The scrolling effect works when you already are in the folder, but when visiting the front page, for then visiting a link in a folder in "about us", the scrolling effect will not work, and the page will not show up (react) to the cursor clicking on the link. This happens when I place my jquery script in the "Code injection" header. If I remove the code, all links and pages works fine when pointing the cursor, clicking on each page and links. But I really want this code to work, so every anchor link and scroll to top button scrolls to the specific codeblock for each section. Can someone please help me figuring out what is wrong in the code? what is your page url BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
AlexCossey Posted March 23, 2021 Share Posted March 23, 2021 I have a similar problem too - in an original build of my website back in 2016 my anchor links would smoothly scroll but now they jump immediately, which is a bit jarring. See "Family", "Wedding" and "Newborn" on this webpage https://www.alexcosseyphotography.com/faqs I m using the Code image block and the following code: <div id="family-faqs"> </div> Any advice would be greatly appreciated! Link to comment
Beyondspace Posted March 23, 2021 Share Posted March 23, 2021 17 minutes ago, AlexCossey said: I have a similar problem too - in an original build of my website back in 2016 my anchor links would smoothly scroll but now they jump immediately, which is a bit jarring. See "Family", "Wedding" and "Newborn" on this webpage https://www.alexcosseyphotography.com/faqs I m using the Code image block and the following code: <div id="family-faqs"> </div> Any advice would be greatly appreciated! I still see the link animating to the end of the page BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.