2.4k questions

2.4k answers

94.2k users

2 Online Users
0 Member 2 Guest
Today Visits : 199
Yesterday Visits : 2243
Total Visits : 2291478

Categories

Notice

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

Information

Viktoria Katsanioti,

Kaliningrad,

Russia,

matizegr@yahoo.com

0 votes
52 views

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

in WordPress by (95.0k points)

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 (95.0k points)
...