treehouse : what would you like to learn today?
Web Design Web Development iOS Development

custom login for wordpress

  • I'm trying to make a custom login for wordpress and the tutorials I've tried are not working. I've tried a few different ones. Once I add the function code all it's doing is nothing but making my site go blank or the login page stays the same. Is there a change to the new wordpress why there code isn't working?
  • Can you show us the code that you're using? Are you sure you're adding it to your functions.php file?
  • function custom_login() {
    echo '<link rel="stylesheet" type="text/css" href="' . get_bloginfo('template_directory') . '/custom-login.css" />';
    }
  • anyone know of a good tut that will show me how to create my own? that will work?
  • From Chris' other website, Digging Into WordPress:
    // custom admin login logo
    function custom_login_logo() {
    echo '<style type="text/css">
    h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important; }
    </style>';
    }
    add_action('login_head', 'custom_login_logo');

    http://digwp.com/2010/03/wordpress-functions-php-template-custom-functions/