1

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!

1 Answer 1

1

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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