How to restore themes original robots.txt after edit?

I think that I deleted the default robots.txt file on my theme.

I followed this tutorial to edit my robots.txt https://gofishdigital.com/shopify-robots-txt/.
So I clicked action=> edit robots.txt.liquid, but then I deleted it

now my site’s robots.txt file is empty:

# we use Shopify as our ecommerce platform

User-agent: *
Disallow: /

Anyway to restore the original?

To restore to the Default Shopify’s Robots.txt file go to theme > actions > edit code> go to Templates sections > Click “Add a new template”> in the dropdown select robots.txt > Save.
See screenshot for reference.

1 Like