Change WooCommerce Variation Dropdown Text

You can change the default text in the product variation dropdown from ‘Choose an option‘…. to something else with the ‘woocommerce_dropdown_variation_attribute_options_args‘ filter.

Woocomerce Variation Dropdown

Add in your functions.php

add_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'bt_dropdown_choice' );
// 
/**
 * Change the custom dropdown  "Choose an option" text on the front end
 */
function bt_dropdown_choice( $args ){
        if( is_product() ) {
                $args['show_option_none'] = "Add your custom text in here"; // Change your text here
        }  
        return $args;    
}

1 Comment

  1. Damien Carbery on October 26, 2018 at 6:42 am

    I wrote a generic version of this back in June: https://www.damiencarbery.com/2018/06/customise-choose-an-option-dropdown-item/
    It uses the attribute name.
    For example, an attribute for ‘collar-color’ is displayed in the dropdown as ‘Choose Collar Color’ (it’s capitalized and dashes are replaced with spaces. Obviously it will only work if the attribute is named in a way that can be processed like this).

Leave a Comment