---
title: "How to Add llms.txt to WordPress and Shopify"
description: "Add llms.txt to WordPress and Shopify with clear root-file steps, plugin or theme methods, and verification so AI crawlers can find and cite your pages."
url: "https://articles.flowcrews.com/how-to-add-llms-txt-to-wordpress-and-shopify"
category: "AEO"
date_published: 2026-09-17
reading_time_minutes: 5
word_count: 1199
---

# How to Add llms.txt to WordPress and Shopify

*CMS-specific install paths so AI crawlers can fetch a citation map at /llms.txt—not a robots.txt clone.*

![How to Add llms.txt to WordPress and Shopify](https://pub-07fb5e4955ba485b822d6b388be96d9a.r2.dev/2e474d51-a072-472e-ab2f-1a43a8990566/how-to-add-llms-txt-to-wordpress-and-shopify/hero-dcbe6b8d-57b0-40db-bef3-94369f6766f1.jpg)

**TL;DR:**

- llms.txt is a root Markdown citation map for AI crawlers, not a robots.txt or sitemap substitute.
- WordPress: place the file at the web root or expose it via a plugin, rewrite, or static-file plugin so /llms.txt returns 200.
- Shopify: you cannot freely write the document root; use theme, app, or reverse-proxy methods that still serve /llms.txt.
- Keep the file short, accurate, and evergreen—link canonical URLs you actually want cited.
- Verify with a browser and curl after cache; a 404 or HTML theme wrapper means crawlers never see the map.

## Prepare llms.txt before you touch WordPress or Shopify

## Put llms.txt at the WordPress site root so crawlers can find it

## Serve llms.txt at Shopify’s real root URL

## Verify the live file and keep the map current

## Conclusion

- Root URL first — llms.txt only helps as crawlable Markdown at the site root on the same host visitors use, not as robots rules or a buried page.
- Finish the map before you publish — curate canonical URLs and context, then pick a WordPress or Shopify method that will not treat the file like a theme asset.
- WordPress needs a real root file — put it next to index.php via SFTP or a rewrite with a Markdown content type; keep it out of theme-only copies, caches, security plugins, and homepage redirects.
- Shopify cannot upload to root in admin — use Hydrogen public/llms.txt, an app proxy, or an edge rewrite so Markdown is served on the custom domain, not .myshopify.com.
- Verify like a crawler — private-window 200, Markdown body, no HTML chrome, no login wall, HTTPS on the canonical host, then re-test after cache, theme, or CDN changes.
- Keep the map current — regenerate when clusters or permalinks change; llms.txt does not replace sitemaps or on-page quality.

Finish your llms.txt map, publish it at the live root on WordPress or Shopify, then confirm the URL in a private window before you scale more content.

## Frequently Asked Questions

### What is llms.txt?

It is a proposed Markdown file at the site root that lists your brand, key pages, and citation-friendly URLs for large language models. It is optional, unofficial, and separate from robots.txt.

### Does llms.txt replace robots.txt or a sitemap?

No. robots.txt still controls crawler access; sitemaps still list URLs for search. llms.txt is a human-readable index aimed at answer engines, not a crawl-control file.

### Where must the file live on WordPress?

Crawlers expect **https://example.com/llms.txt** (same host as the public site). Putting it only in the media library or a post slug usually fails unless you add a rewrite or plugin that serves that exact path.

### Can Shopify host /llms.txt natively?

Not as a free file drop on the origin. You typically serve it through a theme template, an app, or a proxy/CDN rule so the storefront URL still returns Markdown at /llms.txt.

### Will adding llms.txt guarantee AI citations?

No. It only makes a clear map available if a crawler fetches it. Visibility still depends on the model, the query, and whether your pages are public and trustworthy.

### How do I check that it works?

Open /llms.txt in a private window and request it with curl. You want HTTP 200, Content-Type text/plain or text/markdown, and your Markdown—not a 404 or a full HTML theme page.
