Add or Change default WordPress logo in wp-admin page without using any plugin
Here is the quick and simplest way to change default WordPress logo on Login, Registration and forgot password page. This code snippets will change logo without using any plugin.
Add this snippets in your them function.php file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
// Add custom logo in wp-admin <?php function adminCustomLogo() { ?> <style type="text/css"> body.login div#login h1 a { background-image: url(<?php echo site_url()?>/wp-content/uploads/2017/02/LOGO-Black.png); /* Add Here your Logo Path*/ background-size: cover; height: 73px; width: 200px; } </style> <?php } add_action( 'login_enqueue_scripts', 'adminCustomLogo' ); ?> |
In my next tutorial you will learn how to Change the Login Logo URL and Logo Hover Title in WordPress without plugin.
[paypal-donation]