How Change WordPress Website Default Login Logo Using Hooks?


Hello Everyone!

I am here going to tell you all my friends for change the the admin login page logo

Here is the snippet to change the logo on the login screen.

All you have to do is copy this code into your functions.php file and change the image to the image you want to use and it’s done.

function custom_login_logo() {
    echo '<style type="text/css">
        h1 a { background-image:url('.get_bloginfo( 'template_directory' ).'/images/logo.jpg) !important; }
    </style>';
}

add_action('login_head', 'custom_login_logo');

Enjoy Code!

Advertisements

Sr. Software Engineer

Tagged with: ,
Posted in Wordpress
43 comments on “How Change WordPress Website Default Login Logo Using Hooks?
  1. brushart123 says:

    Excellent solution posted by you. Thanks!!! I will implement in my code also.
    Thanks

  2. Outstanding post, I feel blog owners need to larn a lot from this weblog its genuinely user genial .

  3. Gwendolyn says:

    I don’t write many remarks, but after looking at a great deal of responses on How Change WordPress Website Default Login Logo Using Hooks? | Raghunath Gurjar. I actually do have 2 questions for you if you do not mind. Is it just me or do some of the comments come across as if they are written by brain dead individuals? 😛 And, if you are writing on other social sites, I’d like to follow anything fresh you have to post. Could you make a list of every one of your shared pages like your Facebook page, twitter feed, or linkedin profile?

  4. Naomi says:

    Please let me know if you’re looking for a writer for your site. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I’d really like to write some material for your blog in exchange for a link back to mine. Please send me an email if interested. Thanks!

  5. Lucile says:

    I am genuinely thankful to the holder of this web site who has shared this enormous paragraph at at this time.

  6. Elias says:

    Hey there just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Chrome. I’m not sure if this is a format issue or something to do with internet browser compatibility but I thought I’d post to let you know. The design and style look great though! Hope you get the problem fixed soon. Thanks

  7. Giuseppe says:

    I like the valuable information you provide in your articles. I’ll bookmark your blog and check again here frequently. I am quite certain I will learn a lot of new stuff right here! Best of luck for the next!

  8. Maxie says:

    Hey there! I just wanted to ask if you ever have any problems with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no data backup. Do you have any solutions to stop hackers?

    • Hi Maxie,
      You can restore all the blog post by exits site database.
      For Get a complete backup (code as well as database) of the site then you have need to search “virus code” in all core files and remove the “virus code” one by one from all files.

      If you want any more informaion ragarding this then you can contact me on my email raghunath.0087@gmail.com

      Thanks
      Raghunath

  9. Shelton says:

    Very descriptive article, I enjoyed that a lot. Will there be a part 2?

  10. Joshua says:

    Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

  11. Branden says:

    Hello, I desire to subscribe for this blog to obtain newest updates, so where can i do it please assist.

  12. Glory says:

    I know this website offers quality dependent content and other data, is there any other website which offers these stuff in quality?

  13. Shana says:

    Pretty great post. I just stumbled upon your weblog and wanted to mention that I have truly enjoyed surfing around your weblog posts. After all I’ll be subscribing for your feed and I hope you write once more soon!

  14. Berry says:

    I every time spent my half an hour to read this webpage’s articles daily along with a mug of coffee.

  15. Jessika says:

    It is the best time to make a few plans for the long run and it is time to be happy. I have learn this post and if I may just I wish to counsel you few attention-grabbing things or suggestions. Maybe you could write subsequent articles relating to this article. I wish to learn even more things approximately it!

  16. Ethan says:

    My programmer is trying to persuade me to move to .net from PHP. I have always disliked the idea because of the costs. But he’s tryiong none the less. I’ve been using WordPress on a number of websites for about a year and am worried about switching to another platform. I have heard fantastic things about blogengine.net. Is there a way I can transfer all my wordpress content into it? Any help would be really appreciated!

    • Hi Ethan,
      Fist of all i will say many thanks for visit my blog 🙂

      “Is there a way I can transfer all my wordpress content into it? “—->What you means my wordpress content? Have you already a wordpress website?

      We can move/transfer the all content from any website if site is dynamic. if we are storing all the site content into database then we can move the content from one site to another site through a custom query script.

      Let me know i you have any more question.

      Thanks
      Raghunath

  17. Whitney says:

    Good day I am so excited I found your weblog, I really found you by accident, while I was looking on Aol for something else, Nonetheless I am here now and would just like to say many thanks for a remarkable post and a all round interesting blog (I also love the theme/design), I don’t have time to read through it all at the moment but I have saved it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic work.

  18. Joan says:

    Generally I do not read article on blogs, however I wish to say that this write-up very forced me to try and do it! Your writing taste has been surprised me. Thanks, very nice article.

  19. Reinaldo says:

    I truly love your website.. Excellent colors & theme. Did you make this site yourself? Please reply back as I’m hoping to create my own personal site and would love to learn where you got this from or exactly what the theme is called. Kudos!

  20. Shad says:

    Greetings from Florida! I’m bored to death at work so I decided to check out your blog on my iphone during lunch break. I enjoy the info you present here and can’t wait to take a look when I get home. I’m amazed at how quick your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyways, awesome blog!

  21. Wilford says:

    Thanks to my father who stated to me on the topic of this webpage, this webpage is actually amazing.

  22. Willa says:

    Amazing! Its genuinely awesome article, I have got much clear idea about from this paragraph.

  23. Crystle says:

    I found a very useful information on this blog. Thanks for the post. I’ll certainly comeback.

  24. Reginald says:

    Great blog! i love it.

  25. Genevieve says:

    Read on to learn how to post date and time blog publish
    Blogger for a future date, use the current date and time automatically and edit date and time stamps on current blog posts.
    The challenge you face is maintaining the patience to stick
    with it till you’ve built up a sizable following.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: