Skip to content

Instantly share code, notes, and snippets.

@brasofilo
Last active December 25, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brasofilo/6915108 to your computer and use it in GitHub Desktop.
Save brasofilo/6915108 to your computer and use it in GitHub Desktop.
Fix BackWPUp icon for MP6
<?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