I'am using Luma theme and I tried to override some phtml
from module_catalog
.
In luma theme folder which is in vendor/theme-frontend-luma
in /Magento_Catalog
I created the same path as phtml form that I tried to override and it's not working.
Is it possible to do that in Luma theme? or the only way is to create my own theme in app folder to override file?
Best Answer
You can not change directly in
vendon/magento/theme-frontend-luma
folder instead of you have to create new theme inapp/design/frontend/<vendor>/<theme>
, you can refer magento docs How to create new theme in magento 2 ?Once you create theme then you can override
phtml
file in your theme over here: