WordPress: How to Change Read More Text on Category Buttons in WooCommerce

This simple code will change the “Read more” buttons on category pages. In most cases the buttons should be “Add to cart”, but in some cases for example when the product is out of stock, the “Read more” button will be used instead.

Simply paste the following code into your theme’s functions.php file and change the “More Info” value to whatever you want:

function custom_woocommerce_product_add_to_cart_text( $text ) {

	if( 'Read more' == $text ) {
		$text = __( 'More Info', 'woocommerce' );
	}

	return $text;
	
}
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
Free Graphics, Icons, Tutorials
Free Graphics Free Christmas Vector Icon Graphics Pack 2017Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector Graphics
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Google Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358