I would like to remove some ugly looking arrows that are standard on cart buttons in WooCommerce. To achieve this, I found a tip of adding the following code, which should remove the arrows when the document has loaded.

I assume i am going to put it in my functions.php? How exactly would I do that?

Thanks already!

$(document).ready(function() {
    $(".woocommerce-cart").html(function(i, val) {
    return val.replace(" →", "");
    $(".woocommerce-cart").html(function(i, val) {
    return val.replace("← ", "");

jQuery Snippet Source

Read more here: How to correctly add Javascript in functions.php


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: