onClickAfter Callback not working with page reloading: cookie pb?
Closed this issue · 1 comments
Sorry to disturb you again, but I did some tests and even without any other JQuery script, this callback function is not working properly in this project. It seems to me that the state of the current menu page is not kept by the cookie, so when the page refresh, the active class is not attached to the desired links.
https://gist.github.com/Acidy/9f6d0da4471927a98143
test by clicking on About>Public Relation (which is reloading the page)
Do you have an idea on how to solve my problem?
Thank you again for your support
regards
The cookies only store which submenus are open you can't expect the plugin to find which menu item is currently active. You should do that during rendering in php and add accordingly the active class to menus,