Jump to content

Using Code as a One-Page Nav bar problem.

Recommended Posts

Hi there, I'm new to the community and to Squarespace. I'm trying to have a proper working navigation bar on a one-page website, linking to individual sections of the same page. I followed a YouTube tutorial from Inside the Square (linked below), which uses a code block at the top of each section as anchor blocks. I can't find any option to add proper anchor blocks or go more advanced in section settings. I followed the instructions correctly, but the nav bar buttons are not working on the preview and the published website, including other people's computers (or at least not as intended). 

Edit: here's the website URL: https://silver-harp-gkmf.squarespace.com/#process

Here's the code: <div id=”anchor”></div>

(in this case 'anchor' is replaced with the target section), and I built links in to the nav bar that link to these with a hash (e.g. #anchor)

I've tried asking Claude AI for help, but nothing I've tried seems to work. This also falls outside the scope of Squarespace customer support. Halp. 

Here's the YouTube link: 

 

Screenshot 2024-08-16 at 2.22.19 PM.png

Screenshot 2024-08-16 at 2.22.34 PM.png

Screenshot 2024-08-16 at 2.22.43 PM.png

Edited by MrUsidore
Didn't originally share website URL
Link to comment
  • Replies 2
  • Views 320
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Please share the site’s URL with the community. By default, it isn't included in the public post.

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.