Moose
Moose

Reputation: 63

How to customize wordpress dashboard logo?

Can anyone help me please figure out how to modify this image in a wordpress plugin?

enter image description here

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

Answers (2)

Zohair Baloch
Zohair Baloch

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

janw
janw

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

Related Questions