Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

Reply To: Have I to add classes manually (eg. has-submenu current)

Home Forums Older releases 1.0.x Have I to add classes manually (eg. has-submenu current) Reply To: Have I to add classes manually (eg. has-submenu current)

#3048
admin
Keymaster

If you use the markCurrentItem: true option, the script will automatically add the “current” class to the proper item so you won’t need to do it server-side with PHP:

http://www.smartmenus.org/docs/#markCurrentItem

As for the “has-submenu” class – it is automatically added to the parent items’ A elements when the script initializes the menu tree so you don’t have to worry about it.