Change text for dropdown of variable products to choose – WooCommerce

Edit red coloured for your situation and add this code to functions.php

function my_dropdown_variation_attribute_options_html($html, $args){
$html = str_replace('Choose an option', 'Size options', $html);
return $html;
}
add_filter('woocommerce_dropdown_variation_attribute_options_html', 'my_dropdown_variation_attribute_options_html', 10, 2);

Advertisements
Change text for dropdown of variable products to choose – WooCommerce

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s