Opened 9 years ago
Closed 8 years ago
#40117 closed defect (bug) (worksforme)
Dashicons in adminbar
| Reported by: | sebastian.pisula | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Toolbar | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
I try add to admin bar option with Dashicon, for example:
<?php $wp_admin_bar->add_menu( array( 'id' => 'test', 'title' => '<span class="dashicons dashicons-admin-links"></span> Label', ) );
and I don't see icon. Why ? Css for wpadminbar overwrite font family for dashicons:
#wpadminbar *{
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
}
Change History (2)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
IIRC you'd need to use the
ab-iconclass if you add the icon like this.