How to Change Header Logo in Wordpress Dashboard
Creating a theme for a client? why not give it a more customized look by changing the default "W" logo in Wordpress Admin Dashboard. Here is a simple code for that.
Creating a theme for a client? why not give it a more customized look by changing the default "W" logo in Wordpress Admin Dashboard. Here is a simple code for that.
Open functions.php file of your theme and add the following 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>
';
}
Now create a 30×31px transparent GIF image and save it in your theme’s images folder.
Thanks to Jacob Goldman for sharing this tip.
Nicely done, love the WordPress Cookies!
thanks for tips