Change WordPress Login Logo

Need to change the default WordPress login logo? This snippet allows you to change the logo with ease. Just put the snippet in the functions.php and then add your new image to the images folder in your theme folder.


<?php
function custom_login_logo() {
    echo '<style type="text/css">
       body.login h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png); }
    </style>';
}
add_action('login_head', 'custom_login_logo');
?>

If you don’t like playing around in the functions.php file then this plugin will also do the job – Login Logo Plugin

This post currently has no responses. What do you think?

You can use basic HTML when posting code, please turn all < characters into &lt; or > into &gt;
If the code is multi-line, use <pre><code></code></pre>

Leave a Reply

Your email address will not be published. Required fields are marked *

Current ye@r *