Notifications
Clear all

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed. We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] Custom Login Front end

3 Posts
2 Users
0 Reactions
1,599 Views
(@osmantarar)
New Member
Joined: 5 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)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6444
 

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)
New Member
Joined: 5 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