[wp-trac] [WordPress Trac] #32155: Interested in a custom Dashicon

WordPress Trac noreply at wordpress.org
Fri May 1 16:17:46 UTC 2015


#32155: Interested in a custom Dashicon
-----------------------------+----------------------
 Reporter:  Dono12           |       Owner:
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:
Component:  Administration   |     Version:
 Severity:  normal           |  Resolution:  invalid
 Keywords:                   |     Focuses:
-----------------------------+----------------------

Comment (by Dono12):

 Replying to [ticket:32155 Dono12]:
 > I would like a Dashicons added to your Misc section of Developer
 Resources: Dashicons Page
 (https://developer.wordpress.org/resource/dashicons/#format-chat). I need
 this Icon for a project which is constantly evolving. Hope you guys can
 help.

 I'm not well versed in PHP, so I couldn't figure out how to write the
 function properly to achieve what I'm trying to do. I assumed that I would
 have to submit my custom icon file and it would simply be listed among the
 Dashicons on the WP Icon page. Thus giving me the ability to call it in my
 CSS like so :

 #wpadminbar #wp-admin-bar-my-sites>.ab-item:before,
 #wpadminbar #wp-admin-bar-site-name>.ab-item:before

 {
 content: "\f488";
 top: 2px;
 }.

 I want to replace the first icon in the wp-admin-bar menu on the front-
 end, which is typically the image of a gear. I know I can change it for
 something else from the list of Icons on this web page:
 http://melchoyce.github.io/dashicons/, by simply changing content:
 "\f488"; to a generated CSS from one of the Icons listed.
 Can you please help me with the proper way to write the function and how
 to call my custom Dashicon.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32155#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list