How to create a login page in word press without using a plug-in

。 Male form_id the ID attribute value of male breeding. Default login information. Male label_username male label of the user name or email address field. The default is user name or email address. Label_password label of password field. The default is password. Male and female labels memory labels of male and female memory fields. Basic \
In fact,
\/\/The default redirect value returns the user to the request URI.
\
\
\
\
\
\
‘id_username’ => ‘user_login’,
‘id_password’ => ‘user_pass’,
\
\
\
\
\/\/Set the value _memoryto true, and select the remember check box by default.
\
);
); ?> Unlike the default word press login form label, the form appears as a new label added to the array. In the above code, the user name is changed to your username and the password is changed to your password.
After the shortcut code and callback function are generated, they must be initialized to add a custom login form using the shortcut code anywhere on the word press post or page. The following is the code to initialize the shortcut code of the login form\/\/ Step 3: initialize the short code function
Add_action (\
WordPress generates complete code snippets of the login form shortcut code. Now combine all these code snippets into one code snippet to realize the function of the active WordPress theme. You can add code to PHP and then use the shortcut code ([njengah login form]) to display the word press login form.
The following is the function to add the shortcut code of word press login form. The complete code snippet that needs to be added to the PHP file\/**
*Create a custom WordPress login form without a plug-in [WordPress login form shortcut code]
*@By Joe njengah
*@Key points- https:\/\/gist.github.com\/Njengah\/fa96025717308df1b979e77e5da3eef2
*\/
\/\/Step 1: generate short code
Function njengah_add_login_sho
rtcode() {
add_shortcode( ‘jay-login-form’, ‘njengah_login_form_shortcode’ );
}
\/\/Step 2: short code callback
Function njengah_login_form_shortcode(){
if (is_user_logged_in())
Return \

Male lies,
\
\
\
)
); ?>

Male WordPress login form modeling login form. In order to use the theme design being used, the following styles are added njengah-login-tutorial {
Background: #;
Down jacket: 20px;
Maximum width: 70%;
Blank: 0 automatic;
Color: #fff;
}
Password-login tag{
Blank right: 120px;
}
. login user name{
Top of down jacket: 30px;
}Another way to create a login page in WordPress without creating a login form custom page template plug-in is to create a custom page template and publish the login form to the corresponding page using the wp_login_form() function. The following is the code for creating a custom login page in the custom page template: Welcome. Login succeeded!

‘;
}Another{
wp_login_form(
Sort(
\
\/\/The default redirect value returns the user to the request URI.
\
\
\
\
\
\
‘id_username’ => ‘user_login’,
‘id_password’ => ‘user_pass’,
\
\
\
\
\/\/Set the value _memoryto true, and select the remember check box by default.
\
)
);
}
get_footer();
Save this code to a file and name it login page. Make sure you specify PHP and save it in the root folder of the word press theme. After creating a new page, you will notice that the login template is available in the page property template option, as follows: Select the template and publish the page. After checking the front end, you will see that users who are not logged in will display the login form and logged in users will display a welcome message. Male conclusion this post introduces two methods of adding login form to word press page. You can use the shortcut code function to generate the shortcut code of WordPress login form, or you can use the custom page template to create the login page in WordPress without plug-ins. Now, implement one of these methods to create a custom front-end login form on the word press site.
I hope I can pick it up. How to create a WordPress page map for the custom post type of similar articles? How to create a page in WordPress through the 30 best WordPress security plug-in programming methods, visit the WordPress administrator dashboard or log in to the WordPress dashboard, and customize the order receiving page How to create a woodpress contact form plug-in WordPress woodpress how to delete unclassified categories on woodpress pages by adding a search window at the top of the page store topic for easy contact. How to use the method example of deleting sidebar or hiding WordPress sidebar to create a custom query page mapping in woodpress woodcommerce to Magento: what is the best e-commerce platform? How to back up the woodpress database? The top 30 best WordPress form plug-ins? How to create separate login and registration pages from the best WordPress form plug-in woodpress? The top 35 best freestyle plug-ins WordPress Shopify migrate to woodcommerce

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *