Jump to content

Anchor links in global nav

Recommended Posts

Hello,

I'd like to make my global nav items scroll the page when clicked (anchor links). The site will be one page, with global nav items "work", "about" and "contact". Each nav item will scroll the page to the appropriate section of the page rather than opening other pages on the site. 

Link to comment
  • Replies 1
  • Views 271
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

First, edit Work section > Add a Code Block > paste this code

<span id="work"></span>

Do similar with About, Contact

<span id="about"></span>
<span id="contact"></span>

Next, access Pages > Main Navigation > Add 3 Link Items

Link 1

  • Name: work
  • URL: #work

Link 2

  • Name: about
  • URL: #about

Link 3

  • Name: contact
  • URL: #contact

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (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.