Hi @golali. I’m in more or less the same boat as Hannah, unfortunately. Doing some digging, though, I found that searching for “Add to cart” within the WooCommerce plugin took me to this line in abstract-wc-product.php
.
That means that the template is probably calling single_add_to_cart_text()
filter rather than having the exact string Add to cart
in the template itself.
Searching for single_add_to_cart_text()
, then, I found the /templates/single-product/add-to-cart/
directory, which looks like the template fragments that are used to add the Add to cart button. If you find the button in each of those templates, that is what you need to edit. You will likely need to change it so that it doesn’t call the filter and simply hard-code the text onto the button so that you can add the span to part of it but not the whole thing.