Categories

Featured templates

WooCommerce. How to change “Select options” text

Elina Webb October 26, 2015
Rating: 5.0/5. From 4 votes.
Please wait...

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

Best Professional Wordpress Themes
This entry was posted in WooCommerce Tutorials and tagged option, select options, text, WooCommerce. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket