wplecturer.com
0 votes
23 views

How do I create a WordPress login page without a plugin?

in WordPress by (67.0k points) | 23 views

1 Answer

0 votes

The best way to create a login page in WordPress without using a plugin to the site is to create a custom page with the custom template and use WP_login_form() function to publish the plugin form on the page

<form action="<?php the_permalink(); ?>" method="post" class="sign-in">
    <p>
        <label for="user-name"><?php _e('Username'); ?></label><br />
        <input type="text" name="user-name" id="user-name" value="<?php echo wp_specialchars( $_POST['user-name'], 1 ); ?>" />
    </p>
    <p>
        <label for="password"><?php _e('Password'); ?></label><br />
        <input type="password" name="password" id="password" />
    </p>
    <p>
        <input type="submit" name="submit" value="<?php _e('Log in'); ?>" id = "yellow-button" />
        <input type="hidden" name="action" value="log-in" />
    </p>   
</form>
see https://wphow.co/kb/how-to-add-a-login-page-in-wordpress/
by (67.0k points)

1.7k questions

1.7k answers

81.7k users

3 Online Users
0 Member 3 Guest
Today Visits : 300
Yesterday Visits : 1272
Total Visits : 1895987
Dear All, These are my answers from Quora and primarily Google; please check the answer and from others sites; the answers are free and without any liability.To make a decision, write down all of the positives and negatives on a piece of paper.Thank you, Elias Katsaniotis, MSc.
1,653 questions
1,658 answers
81,738 users
@ 2022 V Katsanioti ,All rights reserved