How to Hide a Page From Search Engines on Shopify
Last modified: December 3, 2021
Search engines are designed to look at websites and record every page and index it in their database. Then when a user types in a query, that database is used to find the best results for the customer based on several factors. Some say there are more than 200 factors that can determine the placement of a page on a search query. And there are many things that you can do to improve the position of any page you want to rank on Google. You can also use apps like SEO Booster or other SEO apps here.
However, there are times when you might not want the search engines to rank a page on your website. There are numerous reasons for this. For instance, you might have an offer that you don’t want to be found by accident and only want the page open to those who enter the URL or click on a link that you send them. This could be a competition page or a special offer page for loyal customers.
Or you could have pages that are now out-of-date for new customers, but existing customers might find them useful (technical documents for discontinued white goods for example).
Here are the instructions on how you can hide a page from search engines on Shopify.
Recommended: 18 Best Shopify SEO Apps – 2023
# | Name | Image | |
---|---|---|---|
Shopify |
|
More Info
|
|
1 |
SEO Booster ‑ SEO Marketing
|
|
More Info
|
2 |
Shopify SEO Suite by AVADA
|
|
More Info
|
3 |
Plug In SEO
|
|
More Info
|
4 |
SEO Manager
|
|
More Info
|
5 |
Benchmark Hero
|
|
More Info
|
6 |
SEO Doctor
|
|
More Info
|
7 |
Ultra SEO
|
|
More Info
|
8 |
SEO Products Optimizer
|
|
More Info
|
9 |
Smart SEO
|
|
More Info
|
10 |
ReloadSEO
|
|
More Info
|
11 |
SEO Image Optimizer
|
|
More Info
|
12 |
JSON-LD for SEO
|
|
More Info
|
13 |
SEO Expert Pro
|
|
More Info
|
14 |
SEO Images All-In-One SEO
|
|
More Info
|
15 |
SEO Ranger
|
|
More Info
|
16 |
All In One SEO Optimizer
|
|
More Info
|
17 |
SEO Assistant by Buymaxx
|
|
Inactive
|
18 |
SEOMetriks Marketing Tools
|
|
Inactive
|
Step 1 – Log In
The first step is to log into your Shopify store, using your user credentials.
Step 2 – Themes
From the main menu, you need to click on the ‘Online Store’ option and then find the ‘Themes’ option that is there. Click on this.
Step 3 – Edit Code
Find the theme that you’re using and then click on the ‘Actions’ button that is next to it. From the list there, choose the ‘Edit Code’ option.
Step 4 – Theme.liquid
You will see a list of options that are on the next page. You need to open the first section that reads ‘layout’ and then you need to select the theme.liquid file.
Step 5 – Hide Code Insertion
Now if you don’t want to show your search template on search engines you need to copy the code here and paste it within the ‘hide’ section.
{% if template contains ‘search’ %} <meta name=’robots’ content=’noindex’> {% endif %}
Step 6 – Code for Specific Page
If you want to hide a specific page from search tools, for example, a demo product page or a special offer page that you want to just have email subscribers see, then you should add this code to the ‘head’ section within the theme.liquid. Remember to replace the example-1 with the correct page handle that you wish to hide.
{% if handle contains ‘example-1’ %} <meta name=’robots’ content=’noindex’> {% endif %}
Final Word: How to Hide a Page From Search Engines on Shopify
While you want your website to rank high on Google, there are times when certain pages don’t want to be ranked at all. These could be demo pages. Use the above steps to hide elements of your website from Google with ease.