Woocommerce : code postal et ville sur la même ligne @Checkout

/**
 * @snippet      Postcode & city on the same line
 * @author       Alexandre Diaz
 * @compatible   WooCommerce 6.9.4 
 */
add_filter('woocommerce_default_address_fields', 'custom_woocommerce_default_address_fields', 20);
function custom_woocommerce_default_address_fields($fields)
{    
    $fields['postcode']['class'][0] = 'form-row-first';
    $fields['city']['class'][0] = 'form-row-last';
    return $fields;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe and keep up with the latest from Moiz​

Maecenas ultricies, ligula id condimentum efficitur, orci diam tincidunt nisi, et mollis nisl dui ut risus. Nam neque magna, rutrum id sapien elementum, ornare pretium arcu. Suspendisse lacinia pharetra lobortis. Donec vitae eros ut velit lacinia aliquam sodales hendrerit.

Phasellus ut urna eget justo consectetur at ante. Etiam ipsum neque, feugiat ut gravida non, imperdiet nec mi. Quisque vitae urna ut mauris laoreet ullamcorper quis sit amet tellus.

Your email will be safely stored in our database. We respect your privacy. Signing up is quick and easy and you can unsubscribe instantly at any time by clicking the link in the footer of our emails.