Wordpress Login Logo


/ Published in: PHP
Save to your folder(s)

WP Functions

Step 1: Upload the logo you want into the theme images folder
Step 2: Add the following code to your theme functions.php file


Copy this code and paste it in your HTML
  1. /* CUSTOM LOGIN PANEL LOGO */
  2. /*
  3. // Step 1: Upload the logo you want into the theme images folder
  4. // Step 2: Add the following code to your theme functions.php file
  5. */
  6.  
  7. add_action("login_head", "my_login_head");
  8. function my_login_head() {
  9. echo "
  10. <style>
  11. body.login #login h1 a {
  12. background: url('".get_bloginfo('template_url')."/img/logo.jpg') no-repeat scroll center top transparent;
  13. height: 59px;
  14. width: 220px;
  15. }
  16. </style>
  17. ";
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.