[contact-form-7 id="24078" title="Feedback EN"]

Featured templates

WooCommerce. How to change “Select options” text

This tutorial will show you how to change Select options text in WooCommerce templates.

WooCommerce. How to change “Select options” text

Here is the Select Options text that you can find on the Shop page or products archive page:

WooCommerce-How_to_change_Select_options_text-1

We will replace this text with some other text.

  1. Log into the host control panel (cPanel), go to File Manager:

    WooCommerce-How_to_change_Select_options_text-2

    Locate the root directory of wordpress site.

    WooCommerce-How_to_change_Select_options_text-3

  2. Go to wp-content/themes/themeXXXXX/includes directory. Open custom-function.php file to edit:

    WooCommerce-How_to_change_Select_options_text-4

    In the bottom of this file, before closing code ?>, we will need to add the following codes:

    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 'variable':
    			return __( 'Options', 'woocommerce' );
    		break;
    }
    } 
    

    WooCommerce-How_to_change_Select_options_text-5

    You can see Options text, this text will replace the current Select Options text at the front end. If you need some other text, you can replace this text. Save the file.

  3. Refresh the shop page/archive page to see the new text:

    WooCommerce-How_to_change_Select_options_text-6

Feel free to check the detailed video tutorial below:

WooCommerce. How to change “Select options” text