Remove “(optional)” text from checkout fields in Woocommerce 3.4+

前端 未结 2 1538
甜味超标
甜味超标 2020-12-05 20:34

I was previously using this answer to hide checkout fields based on chosen shipping method, it worked fine until an update (3.4.2 current version) I think not sure what has

2条回答
  •  执念已碎
    2020-12-05 21:29

    you can easily use css in this

    .woocommerce form .form-row .required{
        display: none ;
    }
    
    .woocommerce form .form-row .optional{
        display: none ;
    }
    

提交回复
热议问题