Configuring and Using the MemberPress Login Page
Creating the Login Page
To create the MemberPress Login Page all you need to do is navigate to MemberPress > Options > Pages (first tab) and near the top of the page to the right of the 'MemberPress Login Page' option, use the drop down to select '- Auto Create New Page -' and then click the 'Update Options' button at the very bottom of the page.
Important: if this has anything else in the drop down selection, that means the login page has already been created.
You can also use the drop down menu to select any other page you'd like to designate as your login page. If you do this, just be sure to review the 'Editing the Login Page' section below.
Editing the Login Page
From the MemberPress > Options > Pages tab (first one) you can click the 'Edit' button on the 'MemberPress Login Page' option under the 'Reserved Pages' section. You can also search for your login page in the WordPress > Pages section and click the edit option there.
MemberPress has the login form hard-wired into the page, so if you see a blank page that is normal! However, if you'd like to enter anything above or below the login form, all you'll need to do is enable the 'Manually place the login form' option found in the 'MemberPress Settings' section directly below the WordPress Editor on the edit page. Clicking this will reveal the [mepr-login-form] shortcode which you will need to copy and place on the page. Here is an example of what this would look like from the text editor:
You can also add use_redirect="true" to the shortcode above to make it so the login form redirects the user to whatever URL you have enabled as either your global login redirect setting or per-membership login redirect setting. Here is a copy of that shortcode that you can easily copy and paste:
Just remember that if you are going to enter that shortcode onto the login page, you will still have to enable the 'Manually place the login form' option as shown above.
If you would like to change how the MemberPress login page looks visually then you'll need to use custom CSS. Our support doesn't cover such edits, but you can learn the basics of CSS here, and use your browsers developer tools to find the various CSS classes.
Note: editing the login page can be tricky because if you visit the page while logged in, you will be automatically redirected. We cannot prevent this.
Linking to Your Login Page
Though you can always add your login page link anywhere directly, or with one of our shortcodes, the most common way is through a menu item.
To learn how to add a login option to your menu, please check out the first video on this page.
If you are looking to add the login form directly into a PHP template file, then feel free to use this:
<?php echo do_shortcode('[mepr-login-form]'); ?>