Looking to replace "Gastos de envío: " with "Shipping costs" on the English page.
I currently have this jQuery code (which is working), but it only replaces the text the first time you visit the page. If you update the shipping costs, the jquery does not replace the text again.
Is there a way to automatically replace the text without needing an update button?:
jQuery(function ($) {
jQuery('label[for^="shipping_method_0').contents().filter(function() {
return this.nodeType === 3 && jQuery.trim(this.textContent).length;
})
.replaceWith('Shipping\ costs: ');
});
https://i.sstatic.net/ZSJtC.png https://i.sstatic.net/qk5sQ.png
Update: Not permitted to alter the HTML code