Automattic / gridicons

The WordPress.com icon set
http://automattic.github.io/gridicons/
GNU General Public License v2.0
111 stars 13 forks source link

How can I use this in WordPress instead of dashicons? #278

Closed shivapoudel closed 5 years ago

shivapoudel commented 6 years ago

I want to use gridicon in WordPress CPT and add_menu_page but fill is not set so all icons are black.

capture1

davewhitley commented 6 years ago

Hey there, according to this, replacing fill="none" with fill="black" in the svgs should work.

https://stackoverflow.com/questions/30620226/custom-svg-admin-menu-icon-in-wordpress/42265057#42265057

Can you test that out and see if it works?

shivapoudel commented 6 years ago

@drw158 Agreed. With the fill attribute it works great but when on admin load it flickers with colors to match every time.

davewhitley commented 5 years ago

My guess is that there is some sort of override in the WP Admin CSS.