Free AI visibility check. One page, all four dimensions. No signup, nothing installed. Check a page →
Home/Platforms

Platform guide

Craft CMS

The platform that assumes you know what you are doing. That is an advantage here — there is no plugin deciding things on your behalf.

Updated 6 min read

Craft is unusual in this list because it does almost nothing automatically. No plugin is emitting half-correct schema you then have to override. Whatever ends up in your <head> is there because you put it there.

That makes the work straightforward and slightly more manual than WordPress.

Where things go

JSON-LD belongs in your base layout template, usually templates/_layout.twig, inside the head block. Craft's Twig lets you build it from your actual field data rather than hard-coding it:

{% raw %}<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "{{ siteName }}",
  "url": "{{ siteUrl }}"
}
</script>{% endraw %}

Building it from fields rather than pasting a static block is the whole point of being on Craft. Change the field, the markup follows.

llms.txt and robots.txt go in your web/ directory as plain files. Craft serves anything there directly, so no routing configuration is needed.

Per-entry schema is best handled with a Twig include that switches on the section — Article for a blog entry, Product for a commerce entry, LocalBusiness on your contact page.

Your platform Your content Structured data What a machine reads

The one thing to watch

Craft ships with devMode and template caching that can behave differently between your local environment and production. If your structured data looks right locally and missing live, check that the template cache has been cleared and that the entry is actually published rather than a draft.

SEOmatic, if you use it

The most common Craft SEO plugin will emit a lot of this for you, including JSON-LD and meta tags. If you are running it, check what it is already producing before adding your own — duplicated Organization schema is worse than one clean block.

Run the free check on a live entry to see what is actually being emitted rather than what you think is.

Common questions

Does Craft do any of this automatically?

Very little, by design. Craft gives you template control rather than opinions. That means more setup but no fighting a plugin that disagrees with you.

Where do I put llms.txt in Craft?

In the web/ directory as a plain file. Craft serves it at yourdomain.com/llms.txt with no routing needed.

Take this to your assistant

Paste it into ChatGPT, Copilot, Claude or Gemini and apply it to your own website.

Nothing is sent anywhere. The text is copied to your clipboard.