Tagged: current-menu-item, menu
Hi, I’ve tried to look around but can’t find the answer.
We have made our website a onepager with the menu items scrolling down to each section – which works fine. But for some reason the first three menu items isn’t highlighted (current_menu_item) only the fourth – and when scrolling to the 5th and 6th they get highlighted?
It seems like it doesn’t register the first “areas”?
But actually I can see that your demo “Home v7 – onepage portfolio” does sort of the same – highlighting the “Pages” menu item when you’re at the homepage?
Do you have any idea what the problem could be?
Hey!
Try setting the IDs to the color sections, not to the headings.
Best regards,
Josue
Brilliant – this helped!
Thank you very much!