I'm trying to remove the <span class="optional">(optional)</span>
from the WooCommerce My Account edit address page. Is there an other way to do it like this?
.optional {
display: none;
}
I think it would be better to remove it completely from the DOM in the form.
How can I do this?
To remove "(optional)" label text from fields in my account edit address, use the following code:
Code goes in function.php file of the active child theme (or active theme). Tested and works.
Related: Remove "(optional)" text from checkout fields in Woocommerce 3.4+