• Resolved halben

    (@halben)


    I need to remove the BREAK tags after the label name so I can create an aligned form. What is the proper way to edit this code in the wp-login.php? I don’t wan’t to edit the file directly due to a new WP Update version. It’ll overwrite it. Please help.

    1) Should I copy the whole file and paste into my active theme folder?

    <form name="registerform" id="registerform" action="<?php echo esc_url( site_url('wp-login.php?action=register', 'login_post') ); ?>" method="post">
    	<p>
    		<label for="user_login"><?php _e('Username') ?><br />
    		<input type="text" name="user_login" id="user_login" class="input" value="<?php echo esc_attr(wp_unslash($user_login)); ?>" size="20" /></label>
    	</p>
    	<p>
    		<label for="user_email"><?php _e('E-mail') ?><br />
    		<input type="text" name="user_email" id="user_email" class="input" value="<?php echo esc_attr(wp_unslash($user_email)); ?>" size="25" /></label>
    	</p>
    <?php do_action('register_form'); ?>
    	<p id="reg_passmail"><?php _e('A password will be e-mailed to you.') ?></p>
    	<br class="clear" />
    	<input type="hidden" name="redirect_to" value="<?php echo esc_attr( $redirect_to ); ?>" />
    	<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" class="button button-primary button-large" value="<?php esc_attr_e('Register'); ?>" /></p>
    </form>

    Thank you,
    Hal

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter halben

    (@halben)

    Figured it out. Sorry for posting.

    Hey, @halben, what was the solution? I’m attempting something similar– I need to modify the user_login label without directly editing wp-login.php. I thought your fix might lead me in the right direction.

    Thread Starter halben

    (@halben)

    Hi Maylene,

    I ended up creating a custom login page template instead of using the default wordpress login. Sorry didn’t help much but if you need help, msg me.

    Halben

    Thanks, Halben. I ended up using the theme’s functions.php to fix my issue. Cheers!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Proper way to remove in wp-login.php default file’ is closed to new replies.