Search code examples
magento2magento2.2

How to override module-catalog-search/view/frontend/templates/searchlist.phtml


I have create a custom theme. and I want to override searchlist file.

 vendor/magento/module-catalog-search/view/frontend/templates/searchlist.phtml

I move it in

public_html/app/design/frontend/themevendor/theme/Magento_CatalogSearch/

But its render output from vendor. I am new in magento2 so can you suggest me where am i wrong?


Solution

  • Move your file to your custom theme

    public_html/app/design/frontend/../../Magento_CatalogSearch/templates/searchlist.phtml

    And not need to deploy your custom theme. only run below command

    php bin/magento cache:flush