How to noindex multiple webpages

Highlighted
New Member
2 0 0

Hi,

The code to noindex a webpage is 

{% if handle contains 'nanoxia-academy-sidebar' %}
<meta name="robots" content="noindex">
{% endif %}

My question is, how do we use this code to noindex multiple pages? 

0 Likes
Highlighted
Shopify Partner
1365 24 238

You could check if the handle is in a linklist. Loop al the links in there and compare. 

Or you can also do :

{% if handle contains 'nanoxia-academy-sidebar' or handle contains 'foo' %}

https://sections.design tips, tricks & Shopify sections
1 Like
Highlighted
New Member
2 0 0

Thank you!

0 Likes
Highlighted
Shopify Partner
50 1 3

You could try our new app to help you with this: https://apps.shopify.com/sitemap-noindex-manager

0 Likes