Install and activate your child theme.
Inside the child theme functions.php
add this:
/* VARIABLE PRODUCT CUSTOM SELECT
================================================== */
if ( ! function_exists( ‘sf_wc_filter_dropdown_args’ ) ) {
function sf_wc_filter_dropdown_args( $args ) {
$variation_tax = get_taxonomy( $args[‘attribute’] );
$prefix_text = __( ‘Select ‘, ‘swiftframework’ );
$prefix_text .= $variation_tax->labels->name;
$args[‘show_option_none’] = apply_filters( ‘the_title’, $prefix_text );
return $args;
}
add_filter( ‘woocommerce_dropdown_variation_attribute_options_args’, ‘sf_wc_filter_dropdown_args’, 10 );
}