Add your own Logo to Wordpress Dashboard


/ Published in: PHP
Save to your folder(s)

Add the following lines of code to your theme's function.php file.


Copy this code and paste it in your HTML
  1. add_action('admin_head', 'my_custom_logo');
  2.  
  3. function my_custom_logo() {
  4. echo '
  5. <style type="text/css">
  6. #header-logo { background-image: url('.get_bloginfo('template_directory').'/images/your-logo.jpg) !important; }
  7. </style>
  8. ';
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.