Thursday, November 28, 2013

Add a Custom Dashboard Logo

When creating themes for a client, you can use this as one of the perks to the theme. All you have to do is paste the following code below:


//hook the administrative header output

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>

‘;



Add a Custom Dashboard Logo

No comments:

Post a Comment

Please mention your comments.......