I see this help page:
Is there a way to apply code to the entire store and all its pages and images?
Is there anything else I can do above and beyond this?
Like that tutorial says, putting that code on step 4 into the <head> on your index file will block and indexing bots to all pages except for the ones in the robots.txt file.
Another solution would be to password protect your store. Doing this will only allow search engines to index the login page. You can find more instructions on that here.
Put this code between the head section (before </head>
<meta name="robots" content="noindex" />
I have placed the code as you have said in the theme.liquid file, along with the layouthub.liquid file. The layouthub one is for a page creation app that I have installed. The homepage is not using a custom made page with this app.
As I continue to check the site with this tool, it continues to state that it is accessible by bots: https://sitechecker.pro/robots-tester/
My site is: wholesaleblocks.com