Hi,
I suppose this might not be a theme issue but I want to remove the ‘register’ option from the login page. I only want users to be able to register if they use a specific form – this is already in place and works well. If users follow the corect path it means that I have users who are registered as either jobseekers or employers. Unfortunately, if you enter via the login/register option you get classified as a subscriber (I tried to change this in wordpress options) and this means the usertype-based menu system can’t work..
I’m not sure what template and what lines I need to edit in order to safely remove this option – I don’t want to stop people registering, just control where they do it. Any clues appreciated!
Thanks,
Brian
Hi Brian!
Please go to Settings > General and uncheck “Anyone can register”
Cheers!
Yigit
Thanks for that but would that prevent users from registering through means other than the standard login form?
I have forms that allow users to register, but in a controlled way, so that they perform specific tasks, provide specific information and are then given the correct user classification. I don’t want to stop that; only random registration via the standard login form.
Sorry to ask again but I want to be sure about this!!
Hey!
Try adding this at the very end of your theme / child theme functions.php file:
function hide_register_link_login() {
?>
<style> a[href*="action=register"] { display: none; } </style>
<?php
}
add_action('login_head', 'hide_register_link_login');
Cheers!
Josue
Thank you!