How to Create a Custom WordPress Login Page

Add Tool

Create a Custom WordPress Login Page


Create a Custom WordPress Login Page

Some bloggers want to create a custom WordPress login page for their author. Especially multiply author blogs need a login page. To add or create custom WordPress login page is not hard. Simply paste the following code in a page you would like to display your login form. You may add this login form codes in your sidebar.php file or create a page template.

<?php if (!(current_user_can('level_0'))){ ?>
<h2>Login</h2> 
<form action="<?php echo get_option('home'); ?>/wp-login.php" method="post"> 
<input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" /> 
<input type="password" name="pwd" id="pwd" size="20" /> 
<input type="submit" name="submit" value="Login" class="button" /> 
<p> <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label> 
<input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" /> 
</p> 
</form> 
<a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a> 
<?php } else { ?>
<h2>Logout</h2>
<a href="<?php echo wp_logout_url(urlencode($_SERVER['REQUEST_URI'])); ?>">logout</a><br /> 
<a href="http://www.your-domain-name/wp-admin/">admin</a> <?php }?>

Find <a href="http://www.your-domain-name/wp-admin/">admin</a> and add your site admin url for redirect loged user to admin panel. So now you know how easy to create a login form in WordPress theme without using any plugin.

Now you can add some css for adding style for your new created login from.


Tags: WordPress login page, custom WordPress login page, WordPress admin login page, WordPress custom login page, WordPress modify login page
Payza

About Masum Billah

Create a Custom WordPress Login Page 1stWebSuite website seo tool is a free website ranking tool site provides a lot of on page and off page seo useful tools for you. On this site, we have a large number of website ranking tools


SIGN UP TO GET UPDATE TO YOUR INBOX




Discuss about: How to Create a Custom WordPress Login Page


adf.ly