Set the Current State so it is only active one link at a time

Hello! I have a two-page website with a nav menu that includes links to sections on certain page. For example, Results section on the About page.

Ive been trying to figure out how to have the Current state only activated one at a time rather then, for example, the about + results link both in the current state while in the results section.

I’ve exhausted my knowledge and would really appreciate the help

Thank you!

Here is my site Read-Only: [LINK][1]

Hi Kaitlyn,

The problem is that your about link is linked directly to the homepage, which is current-state when you’re on the homepage.

This is different from e.g. your results link which is linked to the results section on the homepage, and is therefore current-state only when that section is in-view.

You’ll want to adjust your about link so it works the same way.

1 Like

Thank you so much Michael! I was definitely overthinking it. You don’t even know how much trouble you’ve saved me.

1 Like