Create a gist now

Instantly share code, notes, and snippets.

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