Remove the default option text from variation dropdown in WooCommerce

Here’s how you can remove the default “Choose an option” and “Select an option” texts from variable product dropdowns.

add_filter( 'woocommerce_dropdown_variation_attribute_options_args', 'wc_remove_options_text');
function wc_remove_options_text( $args ){
  $args['show_option_none'] = ' ';
  return $args;

You can add this code to your site following the instructions here:

How to add custom code to your WooCommerce/WordPress site the right way

Have any feedback? Be sure to let me know here: Contact me

Share your thoughts

Your email address will not be published. Required fields are marked *