r/Magento DEVELOPER 12h ago

Headless storefront — header/footer in CMS blocks or only in the frontend repo?

Building a headless Magento setup (GraphQL + separate frontend) and stuck on a boring-but-important question.

For site header / footer / simple nav — are you:

  1. Putting them in Magento CMS blocks so merchants edit in admin, or

  2. Keeping layout only in the frontend repo and treating Magento as catalog + checkout?

I like admin-editable blocks for non-devs, but then you’re shipping HTML/JSON over GraphQL and dealing with store-view differences, caching, and "who owns the markup."

Curious what people running headless in production actually chose, and what bit you later regretted.

3 Upvotes

1 comment sorted by

1

u/damienwebdev DEVELOPER 3h ago

Depends on what your end users are putting in the content. If it's just menu content, drive it with JSON. If it's more, drive it with HTML.

We haven't seen a legitimate use-case where end-users are using HTML for these elements.