Website Building » WooCommerce » How Do I Change the Wishlist Text in WooCommerce?

How Do I Change the Wishlist Text in WooCommerce?

Last updated on January 18, 2023 @ 1:14 pm

If you’re looking to change the “Add to Wishlist” button text in WooCommerce, there are a few different ways to do it. You can either use a plugin, or edit the code yourself.

If you’re not comfortable with code, then the best way to change the button text is to use a plugin. We recommend the WooCommerce Custom Add to Cart Button plugin.

Once you’ve installed and activated the plugin, go to Settings > Add to Cart Button and enter your desired text in the “Button Text” field. Save your changes and you’re all set!

If you’re comfortable with code, then you can change the button text by editing your theme’s functions.php file. First, you’ll need to add this code:

PRO TIP: If you are not a developer, or are not comfortable with code, do not attempt to change the wishlist text in WooCommerce. This is a complex process that should only be undertaken by someone with experience in coding.
function wc_change_add_to_wishlist_button_text( $text ) {
  $text = 'Add to My Wishlist';
  return $text;
}
add_filter( 'woocommerce_product_add_to_cart_text', 'wc_change_add_to_wishlist_button_text' );

Save your changes and the button text will be updated on your site.

How Do I Change the Wishlist Text in WooCommerce? – There are a few different ways that you can change the wishlist text in WooCommerce. The best way is to either use a plugin or edit the code yourself.

If you’re not comfortable with code, then we recommend using a plugin like WooCommerce Custom Add to Cart Button. If you are comfortable with code, then you can change the button text by editing your theme’s functions.

Drew Clemente

Drew Clemente

Devops & Sysadmin engineer. I basically build infrastructure online.