How to override the phtml files using custom theme method if the phtml files are not present in the core design theme folder?

Eg: CatalogSearch module, how to override result.phtml file?

app\design\frontend\Magento\luma\Magento_CatalogSearch\ has only web folder... no templates folder.

Should i copy result.phtml from modules code/../view folder to my custom theme in app/design ?

2 Answers 2


you have to just copy inside your theme folder,


  • i know the destination to be copied..what i asked was, if the result.phtml is not there in app/design/frontend/Magento/luma/Magento_CatalogSearch/templates/result.phtml then should i copy from another location ie) from code folder??
    – Sushivam
    Aug 30, 2016 at 9:13
  • yes definately you have to copy from magento2.1/vendor/magento/module-catalog-search/view/frontend/templates/result.phtml file Aug 30, 2016 at 9:16
  • I dont have /vendor/magento/module-catalog-search instead app/code/Magento/Catalog/view/frontend/... hope both are same!
    – Sushivam
    Aug 30, 2016 at 9:18
  • yes you can copy from there Aug 30, 2016 at 9:25

It could help someone

The correct path is the same as @Rakesh Jesadiya but With Magento_CatalogSearch, Magento_Catalogsearch doesn't work so :


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.