0

Just after in need of a bit of help / advice on coding my magento 2 site! Basically I want to change parts of the catalog search results page by removing 2 lines of text that is automatically generated, or edit them to say my own message! If anyone could point me in the right direction that would be great! Please see the image below for the lines I want to remove/edit!

Thanks.

Lines to be removed marked by red arrows!

0

These lines can be found in the following template:

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

You'll have to rewrite this template to remove them, or you can just add your own translation of the following lines to replace them with your own message:

<strong>%1 item</strong> were found using the following search criteria

and

Don't see what you're looking for?

If you want to rewrite this template, check this question.

  • I have changed this line as you suggested however it is still showing the old message. Any suggestions? – J Sprakes Apr 21 '17 at 9:12
  • Have you flushed your cache completely? – Maikel Koek Apr 21 '17 at 10:07

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.