A good website is easy to update without being easy to break. The trick is knowing which parts should live in the CMS, the part you edit, and which parts should stay in the code, where they cannot be changed by accident. A simple rule helps: put the things that change often and safely in the CMS, and keep the structure, rules, and critical details in code.

Start with the question: what changes often enough to need editing?

If you change a piece of content often, it probably belongs in the CMS. That usually means page text, staff bios, service descriptions, prices, photos, blog posts, case studies, and opening hours.

If a field needs to be updated by your team after launch, make it editable. That saves time and avoids waiting on a developer for every small change.

Keep the layout in code, not in the editor

The layout should protect the page, not depend on whoever edits it next. If someone can drag things around freely, the page can stop making sense fast.

That is why the structure of a page, the order of sections, spacing, breakpoints, and how components behave on mobile are usually better kept in code. The CMS should feed the layout, not redesign it.

For example, a service page might allow you to change the headline, body copy, image, and button text, but not move the contact block above the main message or remove the call to action altogether.

Treat business rules as code, not content

Some things look editable, but really are rules. Those are better handled in code so they stay consistent.

Examples include pricing logic, filters, access rules, booking limits, calculations, and anything tied to permissions. If you let someone edit those like normal text, one small mistake can cause a real problem.

A simple test: if the wrong value could affect money, access, or data, it usually should not be a free-form CMS field.

Use the CMS for content, not for guesswork

The CMS should make updates clear. If a field needs a label that only your team understands, or a note that explains what happens when it changes, that is a sign the setup needs more thought.

Good CMS fields are narrow and obvious. For example: headline, subheading, CTA label, team photo, or FAQ answer. Bad fields are vague ones like 'misc text' or 'other content.'

If the editor has to guess where something appears or how it will behave, the system is too loose.

A simple checklist for deciding

Put it in the CMS if it changes often, is safe to edit, and should be handled by your team without help.

Keep it in code if it controls layout, affects important rules, or needs to stay consistent every time.

Ask one more question before you decide: what happens if this is edited badly? If the answer is 'the page looks a bit off,' CMS is usually fine. If the answer is 'we break the process,' code is safer.

What this looks like in a real build

In a custom site, the best setup is usually a mix. Marketing pages get editable fields for copy, images, and calls to action. The design system, page structure, and shared components stay fixed.

That gives you the speed of self-editing without giving up control of the parts that make the site work. It also keeps the next update cheaper, because the rules are already built in.

A good handoff should show you exactly what you can edit, what you should not touch, and what to ask for if the business changes later.

The goal is control, not freedom for its own sake

A website does not need every part to be editable. It needs the right parts to be editable.

If you want a site that your team can use without constant help, the CMS should cover the content you actually change and leave the rest alone. That is how you keep a site flexible without making it fragile.