Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Website Setup › Menus › regoster link redirecting to the wrong site
- This topic has 3 replies, 2 voices, and was last updated 6 years, 6 months ago by
farooq.
-
AuthorPosts
-
farooqParticipant@farooq
- 3 Topics
- 9 Posts
Hi
I have installed the gwangi site and on the register link (right side) it take me to the gwangi demo link (https://basic.gwangi-theme.com/register/)
The login page works fine. I have imported the demo content. How can I make the link to go to https://prembandhan.info/register/
My site is https://prembandhan.info
I checked the menu but there is no option to edit the link.
October 13, 2018 at 09:01 #2842@themosaurus- 1 Topics
- 1675 Posts
Hi @farooq,
We’re sorry for the late reply.
We’ve visited your website and everything seems to work fine now. You’ve probably changed your menu settings already.
In any case, if you wish to know more about the user menus, please read the following post:
As we can see on your website, it seems that you’re already using Login With Ajax (https://wordpress.org/plugins/login-with-ajax/). If you wish to go further and 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_custom_login_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('/login')); exit(); } } add_action( 'init', 'gwangi_custom_login_redirect' );
Don’t forget to replace the
/login
part by your login page name if you are not using the same.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,
October 16, 2018 at 16:14 #2884farooqParticipant@farooq- 3 Topics
- 9 Posts
Thanks where do I add the function you have shown below?
Also I want to charge membership to users? is there a subscription plugin for free other than woocommerce subscriptions which is for $199 which I can use to integrate with payment gateway like 2checkout?
Regards,
FarooqOctober 20, 2018 at 06:24 #2977 -
AuthorPosts
You must be logged in to reply to this topic.