How To Change Admin Area Login Logo
WordPress add their brand logo on admin area where you will find it in signup and logo pages so if you need to replace it in just one minute by this code snippet where let you filter by WordPress built-in hooks.
Steps to change WordPress logo on admin singnup or login pages:
- Open WordPress admin panel then go to Appearance > Theme Editor
- Open theme functions.php file, if you work localhost open the same file using any code editor IDE
- Add the following code at the bottom of the file.
- Save the changes.
[php]
function zytheme_login_logo() {
echo ‘<style type="text/css">
h1 a { background-image:url(‘Your Logo URL Here’) !important; }
</style>’;
}
add_action(‘login_head’, ‘zytheme_login_logo’);
[/php]
Did you find the WordPress snippets in this article helpful? Share it with your friends and if you have any questions and want to ask us about it, please don’t hesitate to add comments.