PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, August 23, 2022

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

 August 23, 2022     magento2, magento2.2     No comments   

Issue

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


Answered By - S.P
Answer Checked By - Marilyn (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing