2

First I am new to magento development and theme integration. As reading forum on the magento theme, created custom theme folder structure with listed file as below....

Magento\app\design\frontend\drEcom\tQCustometheme
  • composer.json
  • registration.php
  • theme.xml
  • /media
  • /web

But can't got which and where the phtml files are located, so i can overwrite it???

Can someone please help/guide on this?

7
  • drEcom is my custom theme's <vendor name>. and theme name is <tQCustometheme>
    – Draval
    Commented Dec 19, 2016 at 13:34
  • have you got solution? Commented Dec 20, 2016 at 6:23
  • nope - i was stucked @ css and image not getting redered after appliing my custome theme from parent theme!!
    – Draval
    Commented Dec 20, 2016 at 10:21
  • have you set parent theme to your custom theme ? Commented Dec 20, 2016 at 10:22
  • yep - " <parent>Magento/Luma</parent>"
    – Draval
    Commented Dec 20, 2016 at 10:28

1 Answer 1

1

You can use Magento\app\design\frontend\drEcom\tQCustometheme\{Default_Module}\templates\{yourovrride.phtml}.

let's say you have to override

vendor/magento/module-catalog/view/frontend/templates/product/view/details.phtml

file in your theme then your details.phtml file path should be like:

app\design\frontend\drEcom\tQCustometheme\Magento_Catalog\templates\product\view\details.phtml

3
  • Right now i am working for test/learn purpose only, so using the luma theme to override.
    – Draval
    Commented Dec 19, 2016 at 13:36
  • for luma theme, you can use this app/design/frontend/Magento/luma path Commented Dec 19, 2016 at 13:39
  • Let me try your suggestion... thanks for your efforts...
    – Draval
    Commented Dec 19, 2016 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.