Last active
December 25, 2015 04:09
-
-
Save brasofilo/6915108 to your computer and use it in GitHub Desktop.
Fix BackWPUp icon for MP6
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 | |
/** | |
* Plugin Name: Fix BackWPUp MP6 menu icon | |
*/ | |
add_action( 'plugins_loaded', function() | |
{ | |
if( ( !is_multisite() || is_network_admin() ) && defined( 'MP6' ) ) | |
{ | |
add_action( | |
'admin_head', | |
function() | |
{ | |
?> | |
<style type="text/css"> | |
.mp6 #toplevel_page_backwpup .wp-menu-image:before { | |
font-family: FontAwesome !important; | |
content: '\f0c2' !important; | |
} | |
#adminmenu #toplevel_page_backwpup .wp-menu-image { | |
background: none !important; | |
width: 34px !important; | |
height: 30px !important; | |
margin: 0 | |
} | |
#toplevel_page_backwpup:hover .wp-menu-image { | |
background: none !important; | |
width: 34px !important; | |
height: 30px !important; | |
margin: 0 | |
} | |
</style> | |
<?php | |
} | |
); | |
add_action( | |
'admin_enqueue_scripts', | |
function() | |
{ | |
wp_enqueue_style( | |
'font-awesome', | |
'//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css', | |
false, | |
null | |
); | |
} | |
); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment