Ok trying to fix my robots.txt if i go into templates the option to click ‘add new template’ is not there.
why is this?
A user encountered difficulty locating the option to add a new template in Shopify when attempting to fix their robots.txt file.
Issue Identified:
Solution Provided:
Additional Guidance:
The issue was resolved through step-by-step visual guidance showing the updated interface.
Ok trying to fix my robots.txt if i go into templates the option to click ‘add new template’ is not there.
why is this?
Hello @retrodesire ,
I hope you are doing well!
Can you please provide the screenshot where the opion of Add new template is not visible?
@retrodesire You need to click on Templates and click on add file icon which I have shown in the screenshot. I understand that lot of changes have been done in UI by Shopify which cause misunderstanding.
You will get the option to name the file and click on enter to create the file
I hope this helps or this fullfil your requirement. If this works for you, please mark my reply as answer. Also, if you need any help, feel free to message me or reply here.
Cool thanks
do i just type in robots.txt?
Yes! You need to type robots.txt and Press Enter.
Documentation is a bit old as it follows old code editor. But like @AiTrillion said just create a new file in the templates folder but name it robots.txt.liquid and add code you want. Note that the default robot.txt is fine and also backup code or copy and add new lines.
Check some documentation here
https://help.shopify.com/en/manual/promoting-marketing/seo/editing-robots-txt