WordPress.org

Support

Support » Plugins and Hacks » [Resolved] removing some wording on Login form

[Resolved] removing some wording on Login form

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi. There might be some other ways, but you can edit the wp-login.php and remove the link there. I know I’ll be chastised for suggesting this and I’m NOT saying to do it, but that’s where you could remove it or surround that function by a class or div and create a css style to display:none.

    ***Warning. This is a core wordpress file. If you make changes to it, you will lose your changes when wordpress is updated. Maybe there’s a function you can apply instead so you won’t have to edit the core.***

    Let me know if you need more help.

    thanks,
    Bob

    scotianaires
    Member

    @scotianaires

    Bob
    Thanks for replying.
    I can see the “login form” near the bottom of the wp-login.php (start line 680):

    <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', 'login_post' ) ); ?>" method="post">
    	<p>
    		<label for="user_login"><?php _e('Username') ?>
    		<input type="text" name="log" id="user_login" class="input" value="<?php echo esc_attr($user_login); ?>" size="20" /></label>
    	</p>
    	<p>
    		<label for="user_pass"><?php _e('Password') ?>
    		<input type="password" name="pwd" id="user_pass" class="input" value="" size="20" /></label>
    	</p>
    <?php do_action('login_form'); ?>
    	<p class="forgetmenot"><label for="rememberme"><input name="rememberme" type="checkbox" id="rememberme" value="forever" <?php checked( $rememberme ); ?> /> <?php esc_attr_e('Remember Me'); ?></label></p>
    	<p class="submit">
    		<input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Log In'); ?>" />
    <?php	if ( $interim_login ) { ?>
    		<input type="hidden" name="interim-login" value="1" />
    <?php	} else { ?>
    		<input type="hidden" name="redirect_to" value="<?php echo esc_attr($redirect_to); ?>" />
    <?php 	} ?>
    <?php   if ( $customize_login ) : ?>
    		<input type="hidden" name="customize-login" value="1" />
    <?php   endif; ?>
    		<input type="hidden" name="testcookie" value="1" />
    	</p>
    </form>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    I can see username, password, remember me – BUT not “New User? Click here to register”
    Where else might it be?
    Also, while I can follow the code, I can’t write it – so when you suggest there’s a function I can apply instead – I don’t have the know how to begin tackling that.

    Actually, the easiest solution would be to prevent new registrations if that’s what you’re looking for.

    Steps to Disable New User Registration on WordPress Blog

    I haven’t tried this, but several people have recommended a similar approach. Then, when you see the error code below the login form, use mozilla firebug or chrome developer tools and find the CSS class that’s displaying the error. Create the class in your stylesheet and set display:none.

    This way, you won’t have to edit the core login function.

    Thanks,
    Bob

    scotianaires
    Member

    @scotianaires

    Turns out to be very simple!
    Under Settings – WP-Member Options – It has a field for Register Page – I had pointed it to the Members Only page – when I removed that the comment disappeared. I also had checked “Turn off Registration Page – allow only login” – that’s the only thing checked on the page.
    Thanks for the input – it got me thinking about the problem a bit more.
    Judith

    Glad you found the solution. I’m looking forward to trying out the plugin myself…

    Thanks,
    Bob

    Plugin Author Chad Butler
    Participant

    @cbutlerjr

    Glad to see you found the solution as well. You should NEVER make changes to core WP files. As far as the WP-Members plugin is concerned, you should not make changes to its core files either. For most thing that are needed to change, if it is not already an option in the plugin, there is probably a hook to use for customization. There are currently over 45 action and filter hooks in the plugin. And in worst case scenarios, many of the functions are pluggable. So there is never a good reason to change core files.

    terrystanley
    Member

    @terrystanley

    I’ve been reading for hours now and I can’t find the answer to my problem in any of the documentation.

    I want to make changes to the registration form. I understand I can use a hook. But I cannot figure out WHERE to place the hook (which file and where in the file). The documentation is not clear on this.

    So if I want to make a change in the dialog of the registration form and instead of it saying “New User Registration” I want it to say “New Users Registration (don’t fill out certain fields until you update your registration later)” where in the world to I add the hook?

    Plugin Author Chad Butler
    Participant

    @cbutlerjr

    @terrystanley – generally, it’s going to go in your theme’s functions.php file. You would put the add_filter and add_action calls in there along with the functions that they are calling.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] removing some wording on Login form’ is closed to new replies.