About No indexing My pages.

About No indexing My pages.

smokemega2020
Visitor
1 0 1

My Collection pages have Pagination at a time. But I turn it into infinite Scroll. Now the Problem was My paginated page was indexed. And I use So many types of code to Noindex them but I failed. I need to No-index them quickly.

 

Help Me Please.

Reply 1 (1)

Moeed
Shopify Partner
7472 2022 2482

Hey @smokemega2020 

 

Here's a clean and effective solution:

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file

4) Add the following code in the file below <head> tag

{% if request.path contains '/collections/' and request.query.page %}
  <meta name="robots" content="noindex">
{% endif %}

This will target any paginated collection page (like /collections/shoes?page=2) and tell Google not to index them.

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications