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.
A user converted their collection pages from pagination to infinite scroll but is struggling to prevent the old paginated URLs from being indexed by search engines.
Proposed Solution:
One respondent provided a Liquid code snippet to add to the theme.liquid file that targets paginated collection URLs (e.g., /collections/shoes?page=2) and adds a noindex meta tag. The code uses conditional logic to detect query parameters indicating pagination.
Additional Context:
Another participant referenced Google’s official documentation on blocking indexing, noting that while noindex directives work for Google, other search engines may interpret them differently, so complete de-indexing across all platforms isn’t guaranteed.
Status:
The discussion remains open, awaiting confirmation from the original poster on whether the suggested code solution resolves their indexing issue.
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.
Hey @smokemega2020
Here’s a clean and effective solution:
Follow these Steps:
Go to Online Store
Edit Code
Find theme.liquid file
Add the following code in the file below tag
{% if request.path contains '/collections/' and request.query.page %}
{% 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
If you intend not to index one related page on the website, you can check this guideline from Google for reference. Please also note here that some search engines might interpret the noindex rule differently. As a result, your page might still appear in results from other search engines.
https://developers.google.com/search/docs/crawling-indexing/block-indexing