[wp-trac] [WordPress Trac] #27414: Dashicons for the Right Now widget
WordPress Trac
noreply at wordpress.org
Fri Mar 14 12:58:16 UTC 2014
#27414: Dashicons for the Right Now widget
-------------------------+-----------------------------
Reporter: jmlapam | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Appearance | Version: 3.8.1
Severity: normal | Keywords:
Focuses: ui |
-------------------------+-----------------------------
Hi,
We now use this great font Dashicons to style our custom post type UI
instead of loading a lot of images.
What I can't solve is this :
I've created my custom post types, they have their dashicons. But I want
to display them on the right now widget (at glance) so I use the filter
`dashboard_glance_items`.
In my function I use a simple `get_post_types()` to retrieve all my new
CPTs. Ok that's cool but I've assigned icons to them so I set the
`menu_icon` argument of `get_post_types()`to true to get it.
And If I want to display it, I do something like this :
{{{
$menu_icon = $post_type->menu_icon;
}}}
But after that I can't make it work simply because there's default style.
Of course this can be easily fixed with a CSS in admin where I could
override the default styles.
Just wonder if that could be relevant to change the markup just a little
bit to make it work like it works for custom post type UI in menus.
Hope I'm clear.
Regards.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27414>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list