Jump to content

How to make sure the header navigation link jumps to the top of a section on the same page

Recommended Posts

I'm trying to make the "Portfolio" navigation link in the header on the single-page site, on the home page of my site, to jump to the "Portfolio" section to the desired position where the section header "Portfolio" is visible, instead of requiring the user to scroll up to see the whole section. 

Edited by wolfpassion20
wanted to clarify my writing: that my website is single-page
Link to comment
  • 2 weeks later...
On 10/7/2023 at 2:19 AM, wolfpassion20 said:

wolfwebdev.com

 

You mean Header overlap "Portfolio title"?

Try adding this to Website Tools (under Not Linked) > Custom CSS to fix this problem

h3#portfolio {
    scroll-margin: 500px !important;
}
html {
  scroll-behavior: smooth;
}

Or you can also consider disable sticky header on this page only (I can give the code if you need)

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.