you have whitespace problem, just delete inside your text at the end
Well, I inspected the text on the button and appears like “Comprar ahora “, but the code I use is
add_filter( 'woocommerce_product_single_add_to_cart_text', 'cw_btntext_cart' );
add_filter( 'woocommerce_product_add_to_cart_text', 'cw_btntext_cart' );
function cw_btntext_cart() {
return __( 'Comprar ahora', 'woocommerce' );
}
So I don’t know why that whitespace appears
-
This reply was modified 5 years, 3 months ago by
freddyee.
-
This reply was modified 5 years, 3 months ago by
freddyee.
solved it using
.kadence-svg-iconset {
display: inherit;
}
Hey,
Glad you were able to solve this! Let us know if there’s anything else we can help you with.
Best,
Hannah