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.

function custom_login_logo() {
    echo '<style type="text/css">
       body.login h1 a { background-image:url('.get_bloginfo('template_directory').'/images/login_logo.png); }
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

Want to become a better web developer?

Join over 25,000 other developer & designers who get awesome links to the best news and articles each week delivered directly to their inbox.

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 *