Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If there is, it’s something we haven’t built any support into our plugin for. Sorry.

    Thread Starter 7107 Digital

    (@7107digital)

    I figured it out. Put this code into your functions.php and substitute ‘awards’ for your dashicon:

    <?php
    function add_menu_icons_styles(){
    ?>
    
    <style>
    #adminmenu .dashicons-awards::before {
      color: rgba(204,153,0,1)!important;
    }
    </style>
    
    <?php
    }
    add_action( 'admin_head', 'add_menu_icons_styles' );

    I’ve just changed the colour to gold but you could change the content, size etc if you wanted to as well.

    The only downside is that you lose the ability to have a rollover effect on the icon. Although this is arguably not a downside as now your dashicon really stands out from the rest.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Thanks for the update and snippet on how you solved it.

    Thread Starter 7107 Digital

    (@7107digital)

    Cool. Maybe it’s an option you can roll into the next update.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Dashicon Colour’ is closed to new replies.