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.

Changing sub-arrow on collapse

Home Forums Older releases 1.0.x Changing sub-arrow on collapse

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2677
    DanM
    Participant

    I would like to use a different image for the sub-arrow class if the submenu it expands is expanded or collapsed. Is there an easy way to do this with SmartMenus options, events or methods? Thanks!

    #2681
    admin
    Keymaster

    When a sub menu is displayed, the script adds the highlighted class to its parent item’s link and removes it again when the sub menu is hidden (provided the keepHighlighted: true option is used which is the case by default). So you could use that to change the sub-arrow’s background image – e.g. something like:

    .menuClass a.highlighted span.sub-arrow {
    	/* ... */
    }
    #2682
    DanM
    Participant

    Just what I needed. Thanks very much! Your plugin is great!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘1.0.x’ is closed to new topics and replies.