If you’ve installed the WooCommerce plugin on your WordPress site but the “Add to Cart” button on your products displays “Read More”, I’ll explain the solutions I’ve used. This way, you can change the “Read More” text to “Add to Cart”.

Changing the “Read More” text with a plugin:

Click on Plugins in the admin panel.
Click the Add New button.
Type “More Link Modifier” in the plugin search section.
Install and activate the plugin.
Open the More Link page under the settings menu.
In the Custom Link Text: section, type “View Product”.
Under the Limits for Title heading, check the Limit title by number of characters option.
Save the settings by clicking Update Options at the bottom.
If the problem persists, try the following methods.
Changing the “Read More” text without a plugin:
Log in to your WordPress admin panel.
Go to Appearance > Theme Editor.
Click on Theme Functions (functions.php) in the right-hand section. Copy the following code to change the “Read More” text to the top of the functions.php page. The process is complete.
How to change the “Read More” text in WooCommerce 4

Code to change the “Read More” text;

<?php
/* WooCommerce code to change the "Read More" text */
/* WNM Software - www.bugrayazar.com.tr */
add_filter( 'woocommerce_product_add_to_cart_text' , 'custom_woocommerce_product_add_to_cart_text' );
function custom_woocommerce_product_add_to_cart_text() {
global $product;
$product_type = $product->product_type;
switch ( $product_type ) {
case 'external':
return __( 'View Product', 'woocommerce' );
break;
case 'grouped':
return __( 'View Product', 'woocommerce' );
break;
case 'simple':
return __( 'View Product', 'woocommerce' );
break;
case 'variable':
return __( 'View Product', 'woocommerce' );
break;
default:
return __( 'View Product', 'woocommerce' );
}
}
?>
If your problem is solved, you can support me by writing a comment on the post.

Leave a Reply

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

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed