Magento 2 – How to Make Changes (Edit Core Block) in a Block

magento-2.1magento2

I want to override Magento core block how can I do that
vendor\magento\module-catalog\view\frontend\templates\product\view\options\type\Select.php.

I want to remove -- before and after Please Select text as shown in the image below

enter image description here

So Far I have tried to create a Module to override the block in app/code, app/code/Abcd/Xyz but when i have enabled it it just removed the whole select box as shown in below image

[http://i.stack.imgur.com/gnJiP.png[2]

Best Answer

you can create you own module that contains a translation file i18n/en_US.csv with this content:

"-- Please Select --","Please Select"
Related Topic