Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Website Setup › Pages › Replace WordPress Login Page with Registration Page
- This topic has 3 replies, 3 voices, and was last updated 6 years, 4 months ago by
Themosaurus.
-
AuthorPosts
-
eyebranditParticipant@eyebrandit
- 25 Topics
- 44 Posts
When people click on a private group, such as “Sex” on the homepage here: http://forum.theanonymousconcern.comm, the website takes them to a wordpress login page. We do NOT want them to see THAT page. We want them to go here instead: http://forum.theanonymousconcern.com/register/
I set the register page as the login/ logout global page settings and STILLL i get the wordpress page. We do not want to associate the website with ANY WordPress features AT ALL.
Thank you,
IngaSeptember 13, 2018 at 21:02 #2211@themosaurus- 1 Topics
- 1675 Posts
Hi @eyebrandit,
As we can see on your website, it seems that you’re already using Login With Ajax (https://wordpress.org/plugins/login-with-ajax/).
To redirect all calls to the wp-login.php page to your Register/login page, please add the following code snippet to your website:
function gwangi_possibly_redirect(){ global $pagenow; if( 'wp-login.php' == $pagenow ) { if ( isset( $_POST['wp-submit'] ) || ( isset($_GET['action']) && $_GET['action']=='logout') || ( isset($_GET['checkemail']) && $_GET['checkemail']=='confirm') || ( isset($_GET['checkemail']) && $_GET['checkemail']=='registered') ) return; else wp_redirect(home_url('/register')); exit(); } } add_action( 'init', 'gwangi_possibly_redirect' );
To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:
We hope this will solve your issue. ?
Best,
September 14, 2018 at 16:49 #2257@themosaurus- 1 Topics
- 1675 Posts
Hi @annae,
To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/).
If you have never activated this plugin and added custom code to your website before, please read the following post:
You will discover that there’s no need to be a techie fix this issue. ?
Regards,
November 12, 2018 at 19:40 #3478 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘Replace WordPress Login Page with Registration Page’ is closed to new replies.