Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Anchor links in Nav CSS problem

  • Hi Support,

    When I set a color for active Nav elements, all the Nav elements that are anchor links on the same page show the active css color.

    Is there any option to show only the Nav item as active or in that color where the current URL string/param (e.g. #our-team) is the same?

    Thanks

  • Hi Patrick,

    At the moment, GeneratePress doesn’t have a built-in option to handle hash-based active states. To achieve that, you would need to use some custom JavaScript.

  • Hi Alvind,

    Thank you for your reply. I think that JS snippet would be a good workaround until perhaps a future fix is released. Could you please share the JS?

    Appreciate your support!

    Thank you

  • Are you using the default GP site header/navigation or a custom site header?

    Can you link me to your site?

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.