• Resolved scotianaires

    (@scotianaires)


    I’m happy with how WP-Members works for my purposes – to set up a members only area of a predominantly “page” based website. There’s no registration, just a log in using a Username and a Password.
    I’ve configured the Log In page using Kubric which looks fine.
    BUT it has a line of text at the bottom:
    “New User? Click here to register”
    https://www.scotianaires.ca/WP/members-only/
    I can’t figure out how to get rid of that – all the rest is working just fine.
    I’ve looked at the style sheets but that text insertion isn’t there that I can see. I’m assuming it’s in one of the .js files but since I don’t know js and those files are dense – I’m not sure how to find where the text is so I can remove it.
    Is there an easy way of getting rid of it?
    It’s not something I can change in the dialogue boxes settings – it’s just not there.
    HELP, please.

    https://www.ads-software.com/extend/plugins/wp-members/

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

    Thread Starter scotianaires

    (@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.

    https://techsalsa.com/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

    Thread Starter scotianaires

    (@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

    (@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.

    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

    (@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 ‘removing some wording on Login form’ is closed to new replies.