Woocommerce Checkout的对齐问题

时间:2015-06-10 02:54:51

标签: css wordpress woocommerce wordpress-theming wordpress-theme-customize

抱歉这个真正的新手问题。

如何将标签与单选按钮对齐?

我刚刚将自定义字段添加到我的结帐页面。

/**
 * Add the field to the checkout
 */
add_action( 'woocommerce_after_order_notes', 'my_custom_checkout_field' );

function my_custom_checkout_field( $checkout ) {


echo '<div id="my_custom_checkout_field"><h2>' . __('Delivery Timing') . '</h2>';

woocommerce_form_field( 'my_field_name', array(
    'type'          => 'radio','options' => array( 'a' => __( 'Morning 09:00 - 13:00' ), 'b' => __( 'Afternoon 14:00 - 18:00' ), 'c' => __( 'Evening 18:00 - 22:00' ) ),
    'class'         => array('my-field-class form-row-wide'),
    'label'         => __('Select Your Preferred Delivery Timing'),
    'required'      => true,
    ), $checkout->get_value( 'my_field_name' ));

echo '</div>';

}

截图: enter image description here

0 个答案:

没有答案