Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #381619

    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

    #381665

    Hi Brian!

    Please go to Settings > General and uncheck “Anyone can register”

    Cheers!
    Yigit

    #381733

    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!!

    #382731

    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

    #382780

    Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Removing 'register' from login page’ is closed to new replies.