How can I make certain pages unsearchable on my website?

Heya, some information first, usually helps:)

Theme:Dawn version 6.0.2

Shopify skills, basic but quick learner

I have a website under construction. The shop end of it is fine, no issues there. I have a few pages not relating to products and want to make more. These are pages that I want to make 'unsearchable ideally everywhere but if a solution for internal search is found, I will take it. These pages are for individual clients to have a look at the photo’s so they can choose one.

I want to send clients a url that then takes them to the relevant page.I have tried to make the page ‘hidden’ to fide it from results but it stops the url from working aswell.

Many thanks for taking the time to read this.

Hi @JamesNCAP ,

Please follow the steps below:

  • Step 1: Go to header.liquid file, find ‘routes.search_url’ and add code here:

  • Step 2: Go to main-search.liquid file, find ‘routes.search_url’ and add code here:

Code:


Refer: https://shopify.dev/themes/navigation-search/search#the-search-form

Hope it helps!