Retaining Multilingual Support
-
So, I didn’t actually want to change, for example, the ‘Add to Cart’ text on my product page Add to Cart button. Instead I wanted to add a fontawesome shpooing cart. For now, on the customizer plugin Product Page tab I have this for the Add to Cart Button Text … All Product Types:
<i class="fa fa-shopping-cart fa-flip-horizontal fa-lg"></i> Add to CartBut this then overrides all language settings. Instead I would prefer to call the woocommerce language variable that outputs ‘Add to Cart’ in English, but whatever for French etc.
Is this possible? I tried putting php call the function as I think it is:
add_to_cart_text()but the customizer plugin code obviously strips this, as well as trying a code snippet (using the PHP Code Snippets plugin), but that also would not work.
Maybe instead of simply replacing text, the plugin could optionally prepend/replace/append?
The topic ‘Retaining Multilingual Support’ is closed to new replies.