Change the WordPress Login Logo with your Own

By
Updated April 3, 2016
No Comments
5

Change the WordPress Login Logo with your Own


Tim Brown

Tim Brown is the owner of Hook Agency, and strategic marketer focused primarily on driving traffic and leads for small businesses and construction companies.

WordPress is amazing, but sometimes you want a little credit for the site you built and so a great way to ‘own’ a site more fully or allow a client to ‘own’ the site is the change the WordPress admin logo with your own or your clients.

It’s the equivalent to setting out a welcome mat, and makes a website feel a bit more custom.

Change the WordPress Login Logo

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

Put it in functions.php or a custom plugin

You’ll want to place this code within the functions.php file of a child theme, or inside a plugin for future-proofing this function so that the change carries over when the theme changes.

When to use this

Don’t be shy! Swap out all the WordPress login logo’s for clients with your agencies… or with their branding if it’s nice. Little touches like this can be nice; changing out the WordPress login logo with your own or a clients is just one of many code snippets that can help your WordPress website be as welcoming as possible.

Check the related posts below for more WordPress Code Snippets, and help with WordPress development.

  •  
  •  
  •  
  •  

Related Posts


Tim Brown

Tim Brown is the owner of Hook Agency, and strategic marketer focused primarily on driving traffic and leads for small businesses and construction companies.

Download my E-book "WordPress Development for Noobs" for free right now:

  • This field is for validation purposes and should be left unchanged.
Only the best of web design & marketing

Leave a Reply

Be the First to Comment!

Notify of
avatar

Ready to Get Started?

Get a free consultation now