Hi all,
Firstly just want to say that this module is amasing. I love it and am using it loads.
I had a need to add some styling (a background image of an arrow pointing down in my case) for parent menu items that had children. I needed this to make it clear to users that there were additional menu items that would appear when they hovered over the parent.
The module (as far as I could see) doesn't add a class currently (as of 7.x-1.x-dev on 28th March 2012) so I added some code to make it add the additional class over "hasbranch" if the parent menu item has children. This allowed me to style my menu how I wanted.
I thought it might come in handy for others, or perhaps maybe add it to the dev??
Anyway, attached is a patch file which will add the class.
N.B. the patch file is ONLY for 7.x-1.x-dev released on 28th March 2012.
To use, apply the patch to the megamenu.module file, then you can style using CSS in the megamenu-skins.css (for whichever skin you are using) and add
.megamenu-parent .hasbranch{
//whatever styling you want to apply to main menu items with dropdowns..
}
Comment | File | Size | Author |
---|---|---|---|
megamenu.module.patch | 1.14 KB | just.andy.shilton |