Link to home
Start Free TrialLog in
Avatar of GarySB
GarySB

asked on

Checkout Page Input Field not aligned

Below is my code.  (please see attached jpg)
The word "required" from the First Name echo is showing to the right.  I want to delete it.  The problem I have is when I try to remove it, the Last Name title goes up there to the right and I cannot get the whole Last Name section to be under the First Name section.  

            <p id="edd-first-name-wrap">
                  <label class="edd-label" for="edd-first">
                        <?php _e( 'First Name', 'downloads' ); ?>
                        <?php if( edd_field_is_required( 'edd_first' ) ) { ?>
                              <span class="edd-required-indicator">*</span>
                                <?php } ?>
                  </label>
                  <span class="edd-description"><?php _e( 'We will use this to personalize your account experience.', 'downloads' ); ?></span>
                  <input class="edd-input required" type="text" name="edd_first" placeholder="<?php _e( 'First name', 'downloads' ); ?>" id="edd-first" value="<?php echo esc_attr( $customer['first_name'] ); ?>"/>

                <?php if( edd_field_is_required( 'edd_first' ) ) {  echo ' required ';
} ?>
                 </p>                
            <p id="edd-last-name-wrap">
                  <label class="edd-label" for="edd-last">
                        <?php _e( 'Last Name', 'downloads' ); ?>
                        <?php if( edd_field_is_required( 'edd_last' ) ) { ?>
                              <span class="edd-required-indicator">*</span>
                        <?php } ?>
                  </label>
                  <input class="edd-input required" type="text" name="edd_last" placeholder="<?php _e( 'Last name', 'downloads' ); ?>" id="edd-last" value="<?php echo esc_attr( $customer['last_name'] );
?>"/>
                 </p>
                <?php if( edd_field_is_required( 'edd_last' ) ) {  echo ' required '; } ?>
ASKER CERTIFIED SOLUTION
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial