Posted By

silentpro on 01/17/11


Tagged

login php textmate wordpress Logo


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

anhonestboy
kirichev
DesignGoggles


Wordpress Login Logo


 / Published in: PHP
 

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

  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  

You need to login to post a comment.