How can I use the noindex tag to hide multiple website pages?

Hi, I asked the google search community to hide a site in google search and they told me to use the noindex tag page by page. But there is no way to put this tag on one page that makes all other pages disappear

Hi [email removed]Gegè,

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file theme.liquid

Step 3: Paste the below code at the bottom of this file ⇒ save

{% if handle contains 'handle page' %}

{%endif%}

example

https://hoanghuy-store1998.myshopify.com/pages/contact

{% if handle contains 'contact' %}

{%endif%}

Hope my solution works perfectly for you.

Cheers!

Oliver | PageFly

ok thank you this hides all pages of my site in google and bing search ? Right

this code will apply to one-page contact

if you want to apply for all pages you can add


So by inserting this tag in the theme.liquid I’m going to say that no page of my site will be displayed in google search

Is that right or am I wrong

I found this on the shopify site

{% if template contains 'search' %}

{% endif %}

I don’t know if I should add when reported compre {% if template contains ‘search’ %}

Link di shopify https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines

To the question I asked, I wanted to add that when I try to search for the name of my site in google search, I want my site not to appear, it is possible to do so. This I mean

Bro you are there

Hi @Gege_1

Sorry for replying late

{% if template contains 'search' %}

{% endif %}

this code will disable the search page on GG.
if you add


then all pages will disable on the GG.

If you want to answer, I asked another question https://community.shopify.com/c/shopify-design/remove-omitted-results/m-p/2095145#M556715

if i would like to hide the default shopify collection that collection/all how should i do it ? I always proceed with noindex give an example thanks

Bro you are there ?

you can try to add

{% if template contains 'collection' %}

{% endif %}