Changer le logo Admin WordPress

  1. Connect to your WordPress website using FTP or cPanel File Manager.
  2. Navigate to the wp-content folder and then to the themes folder.
  3. Locate the folder for the active theme of your website.
  4. Look for the file named functions.php and edit it.
  5. Add the following code at the end of the file:
function custom_admin_logo() {
    echo '<style type="text/css">
        #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
            background-image: url(' . get_bloginfo('stylesheet_directory') . '/images/your-logo.png) !important;
            background-position: 0 0;
        }
    </style>';
}
add_action('admin_head', 'custom_admin_logo');
  1. Replace "your-logo.png" with the file name of your custom logo.
  2. Save the changes to the functions.php file.
  3. Clear your browser cache and login to your WordPress admin dashboard to see the new logo.