LLMs information
LLMs information
Good question — short answer: **neither sections nor regular theme assets will give you `/llms.txt` at the root.**
Here’s how to actually do it in Shopify land:
---
## 1. Understand the goal
For `llms.txt` to work as intended, it should ideally live at:
> `https://www.modernmemorydesign.com/llms.txt`
That’s a **plain text file at the root**, not an HTML page, not `/pages/llms`.
Shopify doesn’t natively let you drop arbitrary files at the root via the theme editor (sections, snippets, templates).
---
## 2. Easiest “good enough” option (no Cloudflare tricks)
If you just want the content live and linkable (even if it’s not literally `/llms.txt`):
1. **Create a Page**
* Online Store → Pages → “Add page”
* Title: `LLMs information`
* In the content box, switch to **HTML** view and paste the `llms.txt` content.
* Set the handle to something like: `llms`
* That gives you:
`https://www.modernmemorydesign.com/pages/llms`
2. Optionally, **link this page** from your footer or a hidden “For AI tools” link.
This will not be `/llms.txt`, but it’s simple and works for most practical “tell AI about our site” use cases.
---
## 3. Correct `/llms.txt` at the root (you likely have Cloudflare)
Since you’re already using more advanced hosting/CDN stuff, here’s the proper way:
### Step A – Create the file
1. On your computer, create a file called `llms.txt`.
2. Paste the content I wrote for you.
3. Save it.
You can:
* Either host it somewhere static (e.g., upload to Shopify **Settings → Files**) which gives you a URL like `https://cdn.shopify.com/.../llms.txt`
* Or host it on any static file host.
### Step B – Map `/llms.txt` → that file via Cloudflare
If you’re using Cloudflare as a proxy in front of Shopify (very likely):
1. In Cloudflare Dashboard, go to **Rules → Workers** (or Pages Rules / Redirect Rules depending what you use).
2. Create a Worker (or rule) that:
* Triggers on path `/llms.txt`
* Responds with the text content directly **OR** fetches the hosted file (Shopify file URL) and returns it.
Conceptually (pseudo Worker):
```js
export default {
async fetch(request) {
const url = new URL(request.url);
if (url.pathname === '/llms.txt') {
return new Response(`...your llms.txt content...`, {
headers: { 'Content-Type': 'text/plain; charset=utf-8' }
});
}
return fetch(request); // everything else goes to Shopify
}
}
```
Result:
`https://www.modernmemorydesign.com/llms.txt` serves the text file, but Shopify still runs normally for all other routes.
---
## 4. What NOT to do
* **Don’t** paste the `llms.txt` content into:
* `sections/`
* `snippets/`
* `templates/`
Those are for HTML/Liquid theme rendering, not raw text at root.
* **Don’t** rely on uploading `llms.txt` as a theme asset alone.
That will create something like:
`https://www.modernmemorydesign.com/cdn/shop/t/xx/assets/llms.txt`
which is not the canonical `/llms.txt` path most crawlers expect.
---
## If you tell me whether you *do* have Cloudflare in front of this domain, I can write you the exact Worker code and a tiny step-by-step you can hand to your dev.