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?

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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