I am attempting to add a dropdown storytelling box to collections on my homepage and asked chatgpt for the code. I am supposed to put the code in the index.liquid file which I guess is the index.json file in Craft? but there is a warning at the top of the page…
"
IMPORTANT: The contents of this file are auto-generated.
This file may be updated by the Shopify admin theme editor
or related systems. Please exercise caution as any changes
made to this file may be overwritten."
if it is going to be overwritten, where do I change the code? or is there a way to stop any updates to it? Thanks for any assistance!
Use chatgpt and other LLMS are not a replacement for knowledge
They are text generators they are not knowledge bases and will give wrong information in a field you are incapable of recognizing as flawed or how much effort it takes to correct.
Use such tools as summarizers or incremental guidance for knowledge you HAVE not as a way to generate more work for others.
Thank you for your input. I’m obviously not a coder nor do I wish to be. I’m just trying to get my website better so I can do the things I love to do in my business. I use chat as an assistant in areas I am not knowledgeable about.
Understandable. However, AI often suggests things which do not work
Also, developers exist for a reason too
Anyways, your best/safest bet in this case would be adding a “Custom Liquid” section to either your page main area or Header/Footer group if you want it to run on all pages and then paste code from chat in this section.