How to add active state to CMS Page in Top Menu?
I get active class if i'm on category page.
I'm add items to Top Navigation used categories rewrites urls in magento.
I need help.
magento-1.9navigationtopmenu
How to add active state to CMS Page in Top Menu?
I get active class if i'm on category page.
I'm add items to Top Navigation used categories rewrites urls in magento.
I need help.
Best Answer
Here is the proper way to add a cms page link to the main menu without using the event
page_block_html_topmenu_gethtml_before
.This way you will be able to add an active state to it also.
So create an observer in one of your modules that can look like this: