[wp-hackers] add_menu_page icon hover
Andy Staines
andy at yellowswordfish.com
Fri Dec 5 22:55:27 GMT 2008
Yes - thanks guys. My CSS and graphics were fine. It was my add_menu_page
call that was malformed.
Andy
On 05/12/2008 21:24PM, "andré renaut" <andre.renaut at gmail.com> wrote:
> 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