Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Menu Item ID as class name on MegaMenu #46

Closed
ryanbelisle opened this issue Feb 27, 2013 · 1 comment
Closed

[Feature Request] Menu Item ID as class name on MegaMenu #46

ryanbelisle opened this issue Feb 27, 2013 · 1 comment

Comments

@ryanbelisle
Copy link

I noticed in the MegaMenu, the Item-ID isn't written out in CSS like in the Joomla Core Module. It be great if we could get that into the MegaMenu so it would be consistent and allow someone to target those individual menu item's via css. This class would be added in addition to the other ones present on the LI tag already.

<li class="item-ID"><a>...</a></li>

@joomlart
Copy link
Contributor

At the moment, you have 2 options to target individual menu item in css.

  1. Add a class for those menu items. Megamenu allow you add extra class for menu item, submenu or column. The extra class is better used than the item-ID class.
  2. Each menu item has a property data-id="ID", therefore you can use selector [data-id="ID"] in css to target the item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants