HIDING MULTIPLE SHOPIFY PAGES FROM SEARCH ENGINES


It is important sometimes to hide pages from search engines. Specially for policy pages many people prefer to hide it from search engines.

First, let's take a look how we can hide a single Shopify page from search engines:

From your Shopify admin go to:
Online Store > Theme: Actions > Edit Code:

Search for "theme.liquid"

After the starting of <head> tag (Or before the closing of <head> tag) type in:

{% if handle contains 'your-page-handle' %}
<meta name="robots" content="noindex">
{% endif %}


replace 'your-page-handle' with your desired page handle. That's it done.

Now, let's take a look how we can do it for multiple pages:

From your Shopify admin go to:
Online Store > Theme: Actions > Edit Code:

Search for "theme.liquid"

After the starting of <head> tag (Or before the closing of <head> tag) type in:

{% if handle contains 'your-page-handle-1' %}
<meta name="robots" content="noindex">

{% elsif handle contains 'your-page-handle-2' %}
<meta name="robots" content="noindex">

{% elsif handle contains 'your-page-handle-3' %}
<meta name="robots" content="noindex">

{% else %}
{% endif %}

replace 'your-page-handle 1,2,3' with your desired page handles.

You get the idea now. All set.

Leave a comment

Please note, comments must be approved before they are published

Our Guarantee

Share your guarantees with your customers.

Our Guarantee

Share your guarantees with your customers.

Our Guarantee

Share your guarantees with your customers.

Our Guarantee

Share your guarantees with your customers.