Notifications
Clear all

Paid Addons Support Forum Only

Please note, that here we only support Paid Addons issues and questions.

gVectors Support staff works from 6am to 6pm (GMT+0)

All questions related to wpForo and wpDiscuz free plugins should be asked in the corresponding plugin support forum:

 

wpDiscuz Support Forum wpForo Support Forum

[Solved] Custom Login Front end


osmantarar
(@osmantarar)
New Member
Joined: 2 years ago
Posts: 2
Topic starter  

when i press login to comment it takes me to back end to login but i have front end login. so how can i change it to custom front end login page when click login to comment link?


Astghik
(@astgh)
Support Team Admin
Joined: 4 years ago
Posts: 5061
 

Hi @osmantarar,

You should put a small code in theme functions.php file. Please read this support topic and change the /login slug to whatever uses the plugin:

https://wordpress.org/support/topic/change-link-for-login-link-text/


osmantarar
(@osmantarar)
New Member
Joined: 2 years ago
Posts: 2
Topic starter  

Thanks, it was helpful

Login code for function.php

add_filter( 'login_url', 'my_login_linkchanger');
function my_login_linkchanger( $link ) {
/*whatever you need to do with the link*/
return home_url( 'Your login Url');
}

Logout code for function.php

add_filter( 'logout_url', 'my_logout_linkchanger');
function my_logout_linkchanger( $link ) {
/*whatever you need to do with the link*/
return home_url( 'Your Logout Url');
}


Share:
Scroll to top