Hello, I am currently working on the 21-day portfolio and I’m trying to set up the anchor link so that when I click on the projects button on my nav bar, it scrolls down to the projects section on the same page. I followed the tutor step by step and when I click on the button, it gives me a blank screen( i attached a screenshot of it). Seeing as the tutorial was recorded last year, I’m guessing the settings for the anchor link have changed. Would appreciate any help i can get, thanks.
Here is my site Read-Only: (Webflow - Webflow portfolio class
Here is my published link : https://donaldpractice.webflow.io/
at the URL you have '/#projects
Change it to #projects
If you want the nav to also link to sections on the homepage from other pages — you can leave the slash in the path but @Alkoreiel was right, you certainly should not have the
' before it.
It’s important. Anchors will not work on all pages, have tag
<base> in head (but root page), if href of anchor is page-relative (begins with
For example you are on the page:
Base tag on page like this:
In code of this page there is an anchor:
With base-tag it’ll follow to Example Domain , not what was expected.
To resolve this issue, you can do one of this:
- Use domain-relative anchor.
- Delete base tag - it is often unused.