By default, the drop-down box for configurable products displays 'Choose an option...'. I'd like to change this to 'Select {attribute label}'.
I found the code for this in:
vendor\magento\module-configurable-product\view\frontend\templates\product\view\type\options\
Here the following code can be added to change to the required value:
<option value=""><?php /* @escapeNotVerified */ echo __('Select ').strtolower($block->escapeHtml($_attribute->getProductAttribute()->getStoreLabel())) ?></option>
When the page initially loads this seems to work, however, once the page loads this value gets instantly replaced by 'Choose an Option...' which I found loads from here:
/vendor/magento/module-configurable-product/Block/Product/View/Type/Configurable.php
Where it appears like this:
'chooseText' => __('Choose an Option...'),
Any idea how to insert the attribute name here or stop this from overwriting the change I have already made?