Hey Tuanphan,
The code above is ideal for my site since it would remove the hard refresh that happens on the homepage. Do you know why my duplicate nav links are not hiding? After following the steps and CSS above my duplicate nav links do not disappear.
My site is: https://wedge-lanternfish-wlfy.squarespace.com/
I used the CSS below:
body.homepage .Header-nav a[href^="/"]{
display: none;
}
body:not(.homepage) .Header-nav a[href^="#"]{
display: none;
}
body.homepage .Mobile-overlay a[href^="/"]{
display: none;
}
body:not(.homepage) .Mobile-overlay a[href^="#"]{
display: none;
}