Custom Admin Dashboard Header Logo


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

Once we login and are in the backend of WordPress, there is another small logo of WordPress displayed on top. It’s small but if you wish to change it, then add below code to the same functions.php file we created in above step.


Copy this code and paste it in your HTML
  1. // CUSTOM ADMIN DASHBOARD HEADER LOGO
  2.  
  3. function custom_admin_logo() {
  4. echo '<style type="text/css">#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/logo_admin_dashboard.png) !important; }</style>';
  5. }
  6. add_action('admin_head', 'custom_admin_logo');

Report this snippet


Comments


You need to login to view comments.