[SOLVED] How To Change WooCommerce Button Text

[SOLVED]How To Change WooCommerce Button Text

How To Change “Add to Cart” to “Buy Now” WooCommerce Button Text


Hello! Today I will teach you how to change the WooCommerce “Add to Cart” button text to “Buy Now” or whatever you want to. For this, you have at least two options:


OK, so assuming you did a full backup of your site, in order to change the “Add to Cart” button text to “Buy Now / Order / Hire Me / and so on”, you must add the following PHP code into your theme:

// Change the Add To Cart Button Text on the Product page
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); 
function woocommerce_custom_single_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' ); 

// Change the Add To Cart Button Text on the Product Archives(Collection) page
add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); 
function woocommerce_custom_product_add_to_cart_text() {
return __( 'Buy Now', 'woocommerce' );

Option 1: Changing the WooCommerce Button Text From The Main Theme:

WP-Dashboard -> Appearance -> Main Theme (the active one) -> Theme editor -> (locate the functions.php file) -> Add the PHP code from above at the bottom of the functions.php page -> Save the file.

If the change doesn’t seems to appear, try to clean your browser cache.

Option 2: Changing the WooCommerce Add to Cart Button Text From The Child Theme (SAFEST METHOD):

This is the safest method, because anytime you’ll update the theme your are using on your WordPress site, the configurations you applied on your site will still be there. If you apply tweaks on the main theme, once you’ll update it, you may lose those tweaks.

Assuming you have the Child Theme activated, go to: WP-Dashboard -> Appearance -> Child Theme (the active one) -> Theme editor -> Functions.php (in fact, I think this is the only file you should see on the child theme) -> Add the PHP code.

Cannot Find The Child Theme Editor In The Dashboard

If you cannot locate the functions.php from the admin dashboard, you can try the following thing:

Go to cPanel -> File Manager -> Public HTML (or the folder where your WordPress Site’ s files are stored) -> WP Content -> Themes -> Theme_Folder (best is to go to Child_Theme_Folder) -> You should see the functions.php there. Open with an editor, paste the code above and save it.

Previous Post
How To Cancel LinkedIn Premium Account In 5 Simple Steps
Next Post
[SOLVED] WooCommerce Mini Cart Not Update
Buy WordPress Transfer Service


Affordable WordPress Hosting Auslogics DiskDefrag Pro FREE Best 3 Ways to Get Quality Cheap Hosting for WordPress business website wordpress Cheap Hosting for WordPress cheap ssd hosting cheap wordpress hosting Christmas WordPress Hosting Discount - All features for $50/Year complete web design solution cost of wordpress website cost over $600 ) fast wordpress hosting 2019 fast wordpress hosting us fast wordpress speed FotoJet Designer FREE How much costs a WordPress website? how to add cloudflare to wordpress How To Get 17 Paid Software For FREE ( Normally How To Have A Powerful Website [BONUS: Video] LiteSpeed WordPress Cache - A Boost For Your WordPress Website's Speed litespeed wordpress cache plugin free New WordPress Update : WordPress 5.0 "Bebo" power of website ScreenCamera FREE Seed4.Me VPN FREE Something went wrong and we couldn't process your request." and be stuck ... your request. Please go back to the previous page and try again. ssd cloudflare wordpress strong website Web Designer in Vancouver CA Website Builder With WordPress Website Development solutio What are the benefits of Railgun? What Is Cloudflare Railgun™? Improve WordPress Speed 100% What is Railgun? WooCommerce WordPress Administration wordpress cache plugin wordpress cloudflare speed wordpress hosting 2019 WordPress Security Tips wordpress site wordpress website cost [2019] To Build or Not to Build: A WordPress Website Cost Analysis [SOLVED] Module 'i360' already loaded in Unknown:0 whmcs [The Ultimate Guide] Best 6 Free Do-Follow Strong Backlinks - November 2018
Buy WordPress Transfer Service