• works nicely to change the login page,
    coz everyone familiar with wordpress knows your default login page.

    I read somewhere before that you can add this code to your functions.php page to further enhance it (sorry for not crediting the author):
    //Remove wpadmin login page
    function block_wpadmin() {
    $file = basename($_SERVER[‘PHP_SELF’]);
    if ($file == ‘wp-login.php’ || is_admin() && !current_user_can(‘edit_posts’) && $file != ‘admin-ajax.php’){
    wp_redirect( home_url() );
    exit();
    }
    }
    add_action(‘init’, ‘block_wpadmin’);

  • The topic ‘Works perfectly!’ is closed to new replies.