| |

Changing the ‘Read More’ button text in WooCommerce

Product card CTA says “Read More” in WooCommerce:

it says Read More

It should say “Shop Now”

Solution

use this code in WooCommerce:

<?php

add_filter( 'woocommerce_product_add_to_cart_text', 'custom_add_to_cart_text', 10, 2 );
function custom_add_to_cart_text( $text, $product ) {
    if( $product->is_type( 'variable' ) ) {
        return 'Shop Now'; // Change "Read more" to "Shop Now"
    }
    return $text;
}

Leave a Reply

Your email address will not be published. Required fields are marked *