Hi, is it possible to change the text of “Coupon code” on the cart page?
I also want to change the button apply coupon, for a new text.
Thanks!!
Hey Angelo_Sule,
Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script(){
?>
<script>
(function($){
$(document).ready(function(){
$("#top.woocommerce-cart .coupon input#coupon_code").attr("placeholder", "Coupon Code");
$('#top.woocommerce-cart button.button[name="apply_coupon"]').text('Apply Coupon');
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
Please adjust the text “Coupon Code” & “Apply Coupon” to suit, Then clear your browser cache and any cache plugin, and check.
Best regards,
Mike
Hi,
I did that and I am not seeing changes. I have cleared the cache. Sorry, It does not work.
What else can I do?
Thank you.
I have solved it by FTP. Thank you very much for everything!!!
Hi Angelo_Sule,
Glad you got it working for you! :)
If you need further assistance please let us know.
Best regards,
Victoria