Home Forums Basel support forum Unable to change cart buttons text.

Unable to change cart buttons text.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #676699

    imetrix20
    Participant

    Hello.
    I need to change the text of the cart loot boxes and make them shorter. This can usually be done by inserting some code into the child-basel function.php file.

    add_filter( ‘woocommerce_product_single_add_to_cart_text’, ‘basel_custom_cart_button_text’ ); // Prodotto singolo
    add_filter( ‘woocommerce_product_add_to_cart_text’, ‘basel_custom_cart_button_text’ ); // Archivi prodotti

    function basel_custom_cart_button_text( $text ) {
    return ‘Compra Ora’; // Cambia con il testo che preferisci
    }

    Hello.
    I need to change the text on the cart buttons (product page and product archive) to make them shorter and different. Typically, you can do this by inserting code like the following into the child-basel’s function.php file, but it doesn’t work…
    I’m wondering if there’s a theme override… which I’ve noticed on other sites I have with basel. I’m also having the same issues with the checkout…. Any suggestions?
    Thanks in advance.
    Gius.

    #676700

    imetrix20
    Participant

    ***RESOLVED***
    Tks!!!

    #676751

    Artem Temos
    Keymaster

    Hello,

    Great, we are glad that you sorted it out. Feel free to contact us if you have any further questions.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Unable to change cart buttons text.’ is closed to new replies.