Proper way to remove in wp-login.php default file
-
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)
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.