Last active
August 29, 2015 14:00
-
-
Save robneu/11156724 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add custom icons using Dashicons for Gravity Forms. | |
* | |
* This outputs some extra stlying to force Gravity Forms to use a modern | |
* dashicon in the wp-admin sidebar. | |
* | |
* @author Robert Neu | |
* @link http://melchoyce.github.io/dashicons/ | |
*/ | |
function prefix_gforms_admin_css() { | |
$css = '<style type="text/css">'; | |
$css .= '#adminmenu #toplevel_page_gf_edit_forms div.wp-menu-image img { display: none }'; | |
$css .= '#adminmenu #toplevel_page_gf_edit_forms div.wp-menu-image:before { content: "\f175"; }'; | |
$css .= '</style>'; | |
echo $css; | |
} | |
add_action('admin_head', 'prefix_gforms_admin_css'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment