Magento 2 Search Results – How to Change the Search Results Page

magento2

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!

Best Answer

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.

Related Topic