Home Forums WoodMart support forum How can I convert Woo Commerce checkout fields to display in capital letters?

How can I convert Woo Commerce checkout fields to display in capital letters?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #255367

    Xtolia
    Participant

    Hi Team,

    I would like to know how can I make the checkout fields of Name, Surname, Address, etc to be displayed in capital letters the first letter? and also make the values saved the same way in the database, to display the first letter in Uppercase format.

    What type of custom code or CSS do I need to add to my website using the woodmart theme that hooks into the action that saves the checkout fields, values to display the first letter in uppercase format.

    #255417

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .woocommerce-checkout .woocommerce-shipping-fields h3 span{
    text-transform: capitalize;
    }
    .woocommerce-checkout .woocommerce-billing-fields h3{
    text-transform: capitalize;
    }
    body table th {
        text-transform: capitalize;
    }

    Best Regards

    #255429

    Xtolia
    Participant

    Thank you, I will let you know if it works! Happy New Year 🙂

    #255434

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

    #255439

    Xtolia
    Participant

    Sorry have one more question, seems like the first letters of the name values are working.. any way to make the address input values first letter capital as well?

    #255643

    Hello,

    Please add this code to the Theme Settings > Custom CSS > Global:

    .woocommerce-checkout input[type=text],  
    .woocommerce-checkout textarea {
        text-transform: capitalize;
    }

    Best Regards

Viewing 6 posts - 1 through 6 (of 6 total)