• Hi, I’m trying to change the login page design and have figured so far putting the following code in the function.php helps to change the logo and the link and the background image.

    function custom_login() {
    echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/custom-login/custom-login.css" />';
    }
    function change_wp_login_url() {
        echo bloginfo('url');
    }
    function change_wp_login_title() {
        echo 'Powered by ' . get_option('blogname');
    }
    add_action('login_head', 'custom_login');
    add_filter('login_headerurl', 'change_wp_login_url');
    add_filter('login_headertitle', 'change_wp_login_title');

    Now, how can I entirely remove or edit the “<- back to (my site)” link and the bar on the top of the page? I’d like to do it without editing the files under wp-admin directory. Thanks.

Viewing 1 replies (of 1 total)
  • Hi gs_s, thanks for your helpful code! Using it I was able to come up with the following answer to your last question using CSS…

    In your custom-login.css file, simply include the following line:

    #backtoblog { display:none !important; }

    TA-DA! Hope this helps. 🙂

    PS: In order to keep all the code in the same place, I don’t even use separate CSS files. Instead I call the CSS values between <style type=”text/css”> and </style> within the custom_login() function. Same difference, but makes managing changes one file easier!

Viewing 1 replies (of 1 total)
  • The topic ‘Remove the Bar in the Login Page’ is closed to new replies.