Lego2012
12/13/2016 - 12:19 PM

Add a Custom Dashboard Logo

Add a Custom Dashboard Logo

<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.

<!-- 
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>
    ';
}