Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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. :)

    #663866

    Hey sambo258,

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

    // Change text
    function custom_wootxt(){
    ?>
    <script>
    jQuery(window).load(function(){
        jQuery('.single-product').each(function() {
         	jQuery(".single_add_to_cart_button").text("BUY NOW");
        });
    });
    

    Best regards,
    Vinay

    #663956

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

    #663957

    Hey!

    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,
    Yigit

    #664382

    Thanks that worked for the drop shadow.

    #664682

    Hi,

    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,
    Andy

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.