Q: Hi, This looks great.
I am on Shopify.
I am looking for 1 specific feature though & I am not sure if you have it available with your app.
Does your app allow me to "block" specific pages from the search results?
I have a few custom pages that contain coupon codes & I do not want those pages to show up on any search results, can I block those pages from appearing in search using your app?
Bonus: Can your app block those pages from appearing in Google Search results?
Right now I am accomplishing this with Custom code, but if I can use your app for this, it would be great!
Hi,
Thank you for your questions.
It is possible to exclude specific pages from the app's search. To do so, please follow these steps:
1. Go to the app's Preferences > Pages;
2. Click Edit pages and set the pages you would like to exclude to Disabled;
3. Click Apply changes;
4. Go to the app's Dashboard section and click the Force re-indexation button. When the re-indexation is complete, these changes will be reflected in the storefront.
As for excluding pages from appearing in Google search, I think this should help: https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines
In the case of our app, you would need to add the following code in the <head> block in the theme.liquid file:
For the search results page:
{% if handle contains 'search-results-page' %}
<meta name="robots" content="noindex">
{% endif %}
And this one for collection pages if you use our Filters on collections feature:
{% if template contains 'search' %}
<meta name="robots" content="noindex">
{% endif %}
If any further questions arise, please don't hesitate to let us know. We are always glad to assist.