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

Jake Bresnehan

A Front End Developer based in Sydney and the creator of Web Design Weekly.

Web Design Weekly keeps developers at the forefront of techniques and trends whilst helping them learn and grow to produce top quality code to make the web a better place for all.

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 day month ye@r *