Reputation: 63
Can anyone help me please figure out how to modify this image in a wordpress plugin?
I'm not trying to make it so it's a user set option, just different than the default with a pre-defined logo I have selected.
Upvotes: 0
Views: 113
Reputation: 21
Change your dashboard logo with this code:
add_action('admin_head', 'my_custom_logo');
function my_custom_logo() {
echo '
<style type="text/css">
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/custom-logo.gif) !important; }
</style>
';
}
Upvotes: 0
Reputation: 6662
If you looked at the HTML you would have seen it is a sprite.
So it can be overrulled with your own css sprite.
To add css to the wp-admin use wp_enqueue_style
, also look at this
questions? ask.
Upvotes: 1