Dashboard: Prevent two menus to be open at the same time

Elite
  • 379 points
    WPMU DEV Expert
    Lorange

    Member  —  12th July 2011         

    Hi,

    I would like to automatically "close" any dashboard menu when another menu is opened. I think that could help to lighten the WP dashboard which can sometimes become a bit confusing.

    Example:

    1) User is browsing themes ("Appearance" menu is opened)
    2) User clicks on the "Pages" menu
    3) "Appearance" menu gets automatically closed.

    Any idea how to achieve that in a "clean" way?

    Laurent