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;

Was this helpful? Please buy me a coffee

This code should be added to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code snippets plugin. Please don’t add custom code directly to your parent theme’s functions.php file as this will be wiped entirely when you update.

Share your thoughts

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