Site logo

Archived topic

onepage setup active menu item (for active section)

3 replies · Started by horst on January 9, 2021

Viewing posts 1–4 of 4

hello everybody,

i am not quite sure, if it can be done with gp-options alone, or if i need a plugin like "page scroll to id":

for a landing-page-navigation with anchor links to sections of this page, how can i set the color of the active section to be highlighted? when i set the color in customizer -> primary navigation -> text current, every item of the navigation gets this color.

i think its a simple task to accomplish, but i didnt figure it out yet how to do it right.

thanks for your help, horst

Hi there,

WP adds a current-menu class to any menu link that exists on the current page, which is why all links get styled in that way.

The simplest option is the Page Scroll to ID plugin you mentioned.

ah thanks david, so again a wordpress issue, not a gp-one :O)

so thanks, toppic can be closed.

You're welcome

This archived topic is closed to new replies.