This entry is part 7 of 22 in the Customizing Restrict Content Pro Series
- Mail Chimp for Restrict Content Pro
- Add Custom User Meta Fields to Restrict Content Pro Registration
- Removing “Restrict This Content” Meta Box in Restrict Content Pro
- Restrict Content Pro – Campaign Monitor
- Restrict Content Pro – Graphs
- Restrict Content Pro – Stripe Payment Gateway
- Hide wp-login.php with Restrict Content Pro
- Add a Agree to Our Terms of Use Field to Restrict Content Pro
- Template Files in Restrict Content Pro
- Template Files in Restrict Content Pro
- Adding Custom User Fields to Restrict Content Pro
- Custom Capabilities in Restrict Content Pro
- Custom Capabilities in Restrict Content Pro
- Restrict Content Pro – Enforce Strong Passwords
- Restrict Content Pro – Braintree Gateway
- Restrict Content Pro – WP Job Manager Bridge
- Restrict Content Pro – Download Monitor Bridge
- Restrict Content Pro – Wysija Add On
- Restrict Content Pro – CSV User Import
- Restrict Content Pro – Affiliates Add-On
- WP Push Releases Restrict Content Pro Extension
- Restrict Content Pro – Math Verification
With membership sites, it is very common that admins want to hide the default WordPress login screen and force users to go to a custom, front-end login page instead. Restrict Content Pro has an option that makes this really simple to do.
First you need to setup a page to act as the new login page. Create a page and name it aptly, perhaps Login, then place the login form short code in the page content:
[login_form]
The short code can also be placed in a text widget if you want.
Second, go to Restrict > Settings > Misc and check the box for Redirect Default Login URL.
Third, select the page you want to act as the new Login Page. You can see these settings in the screenshot below:
Once you have completed the three steps above, anytime users access wp-login.php (or wp-admin while logged out) they will be automatically redirected to your new login page.
Great content, 🙂 thank you.
What about the wordpress toolbar, do they see the toolbar or the disables it too?
This does not affect the toolbar.
Ok thanks.
Got this setup but how can I add a logout link (for logged-in only users)?
Take a look at http://codex.wordpress.org/Function_Reference/wp_logout_url()
Is there an easy way to redirect to a custom page after the user logs in using the custom login page?
Custom page as in the page that has the login form short code?
Yup. Actually, I solved it finally by googling short codes and figuring out that you can pass a redirect argument to the short code.
[login_form redirect="/welcome"]
Not sure I saw that in any documentation so it might be good to add. Thanks for your quick response!
Hi,
Default payment gateway only accept paypal how if i dont want using paypal because i want use bank transfer only?
can we change that? how or any fee for that?
thanks
At this time there is not a way to do bank transfers, sorry.
I have added the same to my site and it works but i cannot login with my admin account trying to login via [login-form] .
Have also EDD installed and when i login via another page and[edd_profile_editor] i can log in with admin account.
Is that ok?
Thanky ou
Same here. The login form won’t allow an administrator to log on. Why?
There’s no reason you wouldn’t be able to log in unless there’s a plugin or script on your site causing a conflict. Send us a support ticket and we’ll be happy to help get it resolved https://restrictcontentpro.com/support
I have hidden my wp-login.php page so that users must register via my new registration form. Problem is I am still getting ‘spammy’ registrations coming in, it can only be via the ‘lost your password’ route.
http://www.mysite.com/wp-login.php redirects to http://www.mysite.com/user-login (good!)
but…
http://www.mysite.com/wp-login.php?action=register and
http://www.mysite.com/wp-login.php?action=lostpassword
are still reachable.
How can I block these off?
Thanks
Go to Settings > General and disable user registration.
The shortcode [login_form] does hide the default wordpress login form. But it still displays a “Lost your password?” link to the default wordpress lost password site (yoursite.com/wp-login.php?action=lostpassword)
Would be nice to be able to hide all default wordpress sites consirning the membership. Can this also be done in a really simple way as well?
No, sorry, my plugin does not offer a way to do that at this time.
Hi Pippin, I listen to your podcast all the time, and I really appreciate all your contributions to the WP community. You do great work.
I’d love to use your RCP plugin for a membership site i’m setting up.. but I just can’t expose the default wp Lost Password screen to members. Unfortunately, this is a deal-breaker for my client, so I’ll need to find a different membership plugin. But I just want to add my +1 vote for handling Lost Password functionality within RCP. It looks like such an excellent plugin otherwise, so I’m hoping a future release will include it.
Thanks.
Todd
Why is that a deal breaker?
Any reason you couldn’t simply use one of the plugins that lets you brand the page how you wish?
Hi Pippin.
Great plugin, only I too have a client that is a little concerned about the wordpress admin area being exposed to subscribers.
You mentioned in the other comment:
“Any reason you couldn’t simply use one of the plugins that lets you brand the page how you wish?”
Is there a plugin that you could recommend to accomplish this?
Thanks!
Ben.
This one: http://wordpress.org/plugins/remove-dashboard-access-for-non-admins/
Thanks very much for the link.
I think that this would work partially, do but we wanted to let them have user profile access but with specific branding. Do you think this plugin would work with yours?
http://www.wpexplorer.com/customize-wordpress-admin-white-label-branding/
Thanks.
Ben.
Yep, that should work just fine.
Great. Thanks!
Ben
Hello Pippin,
As a newbie, there´s a few plugins to edit the default WordPress login screen, so Iam using it instead of [login_form] shortcode.
Is that ok? or it will create some kind of conflit?
Thanks
That should work just fine.
I have a login page added to my main menu and a member is able to use it fine. However it does not change to logout once the user has signed in. Is there a way of doing this?
Use this plugin: https://wordpress.org/plugins/baw-login-logout-menu/
Is it possible currently to also include a lost password link on a login page? Do I need to use the templates for that?
That’s offered already through the [login_form] shortcode.
I want to use login form in widget. Is it possible to display the username when somebody logged in and link it to the edit your profile page?
It works! Thanks a lot 😉 🙂