felek Posted July 7, 2013 Share Posted July 7, 2013 Hello, I want to change blocktopmenu. I'm need to add individual id to every li item and every submenu item in blocktopmenu. As far i can see i have to change blocktopmenu.php but i have no idea where and how i have to do it. Need some help in this. Thanks. Link to comment Share on other sites More sharing options...
vekia Posted July 8, 2013 Share Posted July 8, 2013 just append id for each <li you've got in the blocktopmenu.php for example, based on type (case 'CMS' etc.) and id ($id) example: $this->_menu .= '<li'.$selected.' id="liCMS'.$id.'"><a href="'.$cms[0]['link'].'">'.$cms[0]['meta_title'].'</a></li>'.PHP_EOL; do the same for all other <li> elements in the switch function you've got there. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now