Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Theme Customizer › Pages › Account Activated Page (Log In Button)
- This topic has 1 reply, 2 voices, and was last updated 6 years, 5 months ago by
Themosaurus.
-
AuthorPosts
-
Ruben AmaroParticipant@ruffystrider
- 4 Topics
- 7 Posts
In account activated account,
Where’s the button how can I change the address to http://www.caspike.com/login/?Well the page itself goes to wordpress login http://www.caspike.com/wp-login.php ….
October 22, 2018 at 00:17 #2987@themosaurus- 1 Topics
- 1675 Posts
Hi @ruffystrider,
It’s default behavior in WordPress. So, you will need to add custom PHP code to change that.
If you wish to create your login page with Login With Ajax (https://wordpress.org/plugins/login-with-ajax/) like we do on our demos, please make sure this plugin is activated on your server and then, just follow the steps described in our tutorial to setup your custom login page:
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_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 22, 2018 at 10:08 #2989 -
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 ‘Account Activated Page (Log In Button)’ is closed to new replies.