[wp-hackers] add_menu_page icon hover

andré renaut andre.renaut at gmail.com
Fri Dec 5 21:24:51 GMT 2008


Just to add about ozh

add_menu_page('toto', __('Mails','MailPress'), 'MailPress_edit_mails',
MailPress_page_mails,'', 'div');

in your css add

#adminmenu #toplevel_page_mailpress_mails div.wp-menu-image {
    background:transparent url(../images/menu.png) no-repeat scroll -1px
-33px;
}
#adminmenu #toplevel_page_mailpress_mails:hover div.wp-menu-image,
#adminmenu #toplevel_page_mailpress_mails.wp-has-current-submenu
div.wp-menu-image,
#adminmenu #toplevel_page_mailpress_mails.current div.wp-menu-image {
    background:transparent url(../images/menu.png) no-repeat scroll -1px
-1px;
}

and you can find menu_pg here :

http://andrerenaut.ovh.org/wp/wp-content/UserFiles/menu.png


More information about the wp-hackers mailing list