Jump to content

Recommended Posts

Posted

Hey Guys,

I need a bit support with a Singlepage-layout.

The Homepage has different sections, which the user can directly jump to, with anchor (#) Links. This works fine on the homepage on the domain-root-level (domain.com/).

But the site contains other subsites, like Imprint, Privacy Policy etc.

When I want to navigate from a subsite to a specific section on the homepage, Target-urls like "domain.com/#anchor" don't work. When I use the same adress direct in the browser-adress-field, it works fine. But it doesn't as clickable link target.

Am I doing something wrong?
Has anybody a idea or a solution?


Cheers

Posted

Plain and easy HTML IDs. No Scripts.

Script just for Animated (Smooth) Scrolling.

It works as well, when the link is not directed to the domain root adress. For example, when the Homepage is located in a Subdir on the Server (domain.com/subdir/) or when the Singlepage is not the Homepage (domain.com/path/).

Posted

Big Thanks to Nico!

The "Smooth Scroll JS" was too active and has blocked the Link...

PW is still awesome! ;)

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...