I have magento 2.0 C.E. And I want to override a few core template files. But, I do not have anything inside app/design/frontend/magento/ and my luma theme is installed somewhere in the vendor/ directory. I have not created any custom theme also. Please, let me know how this can be achieved.
1 Answer
I can give you a basic example.
Assume, if you want to override customer log-in form.
The original file path is from core.
\vendor\magento\module-customer\view\frontend\templates\form\login.phtml
Assume you need to do some customization. then copy the files to your theme, in this example take LUMA theme.
\vendor\magento\theme-frontend-luma\Magento_Customer\templates\form\login.phtml
Then do necessary changes.
-
-
-
-
Yes you can, bets way is by layout. please refer stackoverflow.com/questions/32120838/… Sep 23, 2016 at 9:55
-