Snippets

WordPress Change logo on Login page (2 Ways)

If you ever wanted to make WordPress change logo on Login page or customize it, this snippet can help you. 

How to Change logo on Login page using WordPress

Note the following WordPress logo on the login page.
Wordpress: Change/Customize Default Logo

To change it, just add the follow inside of your theme’s functions.php file. If you don’t have this functions.php file, then manually create one.

<?php
function customize_login_logo()
{
//Method 1:
echo '<img src="'. get_template_directory_uri() .'/images/logo.jpg" />';

//Method 2:
echo '<img src="'. get_bloginfo('template_directory') .'/images/logo.jpg" />';
}
add_action('login_head', 'customize_login_logo');
?>

If you would like the logo to link back to the blog site, you may use the enhanced code below:

<?php
function customize_login_logo()
{
//Method 1:
echo '<a href="'. get_bloginfo( 'siteurl' ) .'">
<img src="'. get_template_directory_uri() .'/images/logo.jpg" />
</a>';

//Method 2:
echo '<a href="'.get_bloginfo( 'siteurl' ) . '">
<img src="'. get_bloginfo('template_directory') .'/images/logo.jpg" />
</a>';
}
add_action('login_head', 'customize_login_logo');
?>
That’s it!

Do you know of any other way to change or customize the logo on WordPress Login page? If yes, please share it with us in your comments below.

31 Comments on WordPress Change logo on Login page (2 Ways)

  1. 1

    I was curious if you ever thought of changing the structure of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or 2 images. Maybe you could space it out better?

  2. 3

    Thanks so much for giving my family an update on this matter on your web site. Please be aware that if a fresh post becomes available or in the event that any adjustments occur on the current write-up, I would want to consider reading more and learning how to make good utilization of those tactics you discuss. Thanks for your efforts and consideration of other men and women by making this web site available.

  3. 4

    great publish, very informative. I ponder why the other specialists of this sector do not understand this. You should continue your writing. I’m sure, you have a great readers’ base already!

  4. 5

    I’m impressed, I must say. Really rarely do I encounter a blog that’s both educative and entertaining, and let me tell you, you have hit the nail on the head. Your idea is outstanding; the issue is something that not enough people are speaking intelligently about. I am very happy that I stumbled across this in my search for something relating to this.

  5. 6

    Very nice pattern and great written content , nothing else we require : D.

  6. 7

    gratious fantastic website you have got above

  7. 8

    Quite insightful publish. Never thought that it was this simple after all. I had spent a beneficial deal of my time looking for someone to explain this subject clearly and you’re the only 1 that ever did that. Kudos to you! Keep it up

  8. 9

    I am commenting to let you be aware of what a superb discovery my wife’s daughter enjoyed using yuor web blog. She came to find lots of issues, most notably what it is like to have a very effective coaching spirit to have most people effortlessly know just exactly chosen grueling things. You undoubtedly surpassed visitors’ expectations. Many thanks for delivering these valuable, trusted, informative and even cool thoughts on your topic to Gloria.

  9. 11

    I am not real great with English but I line up this real easy to understand.

  10. 12

    Hey There. I found your blog the use of msn. This is a really neatly written article. I’ll make sure to bookmark it and come back to read more of your helpful information. Thanks for the post. I’ll certainly return.

  11. 13

    My brother suggested I might like this blog. He was once entirely right. This publish actually made my day. You cann’t believe just how a lot time I had spent for this info! Thank you!

  12. 14

    Wow, wonderful blog structure! How long have you ever been running a blog for? you make running a blog look easy. The overall look of your website is magnificent, as smartly as the content material!

  13. 15

    Nice post. I was watching continuously this site and I’m impressed! Extremely useful info specifically the last part I care for such info much. I was looking for this particular info for a long time. Thanks and best of luck.

  14. 16

    I am not rattling good with English but I line up this really easygoing to understand.

  15. 17

    It is really a great and useful piece of info. I’m glad that you shared this useful info with us. Please keep us informed like this. Thank you for sharing.

  16. 18

    awesome article! and no beating around the bush, i like when people are straight to the point.

  17. 19

    I used to be more than happy to find this internet-site.I needed to thanks to your time for this glorious read!! I undoubtedly having fun with every little bit of it and I have you bookmarked to take a look at new stuff you blog post.

  18. 20

    Excellent! it is the term which comes in my opinion after i look at your blog and when I read that which you have to say. Your opinions are very a lot as well mine. We happy that I chose to key in your website to see what you’re thinking about.

  19. 21

    TYVM, nice job! Just the thing I had to have.

  20. 22

    A formidable share, I just given this onto a colleague who was doing a little bit analysis on this. And he in actual fact purchased me breakfast as a result of I discovered it for him.. smile. So let me reword that: Thnx for the treat! However yeah Thnkx for spending the time to debate this, I really feel strongly about it and love studying more on this topic. If possible, as you become experience, would you mind updating your weblog with extra details? It’s extremely useful for me. Massive thumb up for this blog publish!

  21. 23

    thank you for your article,My problem has been resolved.

  22. 24

    Get a new template at http://wpthemes4free.org

  23. 25

    Nice read. This blog is awesome.

  24. 26

    Interesting read. This blog is one of my favorites.

  25. 27

    Interesting post. I very much like your blog.

  26. 28

    Hey there this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding experience so I wanted to get advice from someone with experience. Any help would be enormously appreciated

    • 29

      Hi Nydia,
      All blogs use WYSIWYG editors. You do not need to code anything in HTML. You can use WordPress to start your own blog. Download it from wordpress.org
      Hope that helps.

  27. 30

    Major thanks for the article post.Much thanks again. Fantastic.

  28. 31

    You have observed very interesting details! ps decent site.