×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Joseph Riviello
Added: Dec 24, 2012 4:07 PM
Modified: Aug 25, 2013 2:25 PM
Views: 18
Tags: no tags
  1. /** Admin logo swap */
  2. add_action("login_head", "my_login_head");
  3. function my_login_head() {
  4.         echo "
  5.        <style>
  6.        body.login #login h1 a {
  7.                background: url('".get_bloginfo('stylesheet_directory')."/images/logo-login.gif') no-repeat scroll center top transparent;
  8.                height: 122px;
  9.        }
  10.        </style>
  11.        ";
  12. }
  13. // changing the logo link from wordpress.org to your site
  14. add_filter( 'login_headerurl', 'w4_login_headerurl');
  15. function w4_login_headerurl(){
  16.         return home_url('/');
  17. }
  18. // changing the logo title from wordpress.org to your site
  19. add_filter( 'login_headertitle', 'w4_login_headertitle');
  20. function w4_login_headertitle(){
  21.         return get_bloginfo('title', 'display' );
  22. }