Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #663840

    How to change Add to Cart Button text to BUY NOW

    Also how do I reduce the drop shadow of the drop down menu.

    Link provided, below, Many thanks in advance. :)


    Hey sambo258,

    Please try adding this at the very end of your themes / child themes functions.php file:

    // Change text
    function custom_wootxt(){
        jQuery('.single-product').each(function() {
         	jQuery(".single_add_to_cart_button").text("BUY NOW");

    Best regards,


    Didn’t work sorry, just crashed it, I had to ftp the file to remove the above code to fix it.



    Please add following code to Functions.php file of your child theme

    add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text' );  
    function woo_custom_cart_button_text() {
            return __( 'My Button Text', 'woocommerce' );

    then add followin code to Quick CSS in Enfold theme options under General Styling tab and adjust the values as needed

    #header .avia_mega_div {
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);

    Best regards,


    Thanks that worked for the drop shadow.



    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,

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

The topic ‘How to change Add to Cart Button text to BUY NOW’ is closed to new replies.