Hi All!
I want to remove my entire website from being indexed on any search engine.
I’ve tried the solution where you add the code:
{% if template contains ‘search’ %} {% endif %}
to the section of the theme.liquid layout file, however that doesn’t seem to block the homepage from being indexed.
I am hoping there is a way to use the robot.txt.liquid to block the entire site including home page.
Is it possible? Could someone provide step by step instructions?
Please help! 
Hi @mim_louise
This is Noah from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid below the
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code below the
Should put the code without condition to make it work for all pages
The current code you added just remove the search page not all pages
Hope this can help you solve the issue
Best regards,
Noah | PageFly
Hi @PageFly-Noah
Thanks so much for your response.
I’ve put the code in, per the screenshot attached - is that correct?
Also do you know, will the site be removed from search engines if it was already indexed?
For example the homepage has been returning in a Google search (because my coding was wrong), will it eventually stop returning in the search because I’ve now put the correct code in?
Thanks for your help on this! 
@mim_louise Yes the code is correct place.
Now you can run crawl or re-index again, for your site can up-to-date and remove it from Search Engine