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(){
?>
<script>
jQuery(window).load(function(){
jQuery('.single-product').each(function() {
jQuery(".single_add_to_cart_button").text("BUY NOW");
});
});
Best regards,
Vinay
Didn’t work sorry, just crashed it, I had to ftp the file to remove the above code to fix it.
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
Thanks that worked for the drop shadow.
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