Custom Website Design with SEO and UX Built In: What That Means in the Code
In this article
Search engine optimisation and user experience are not finishing touches. They are decisions about how a website is structured, how fast it loads, what each page says and how a visitor gets from landing on it to contacting you. Those decisions are made when the templates are written. That is why a site that has them designed in from the start costs less and ranks better than one that has them patched on afterwards.
"Built in" means specific things:
- one heading hierarchy that every page follows,
- a title and description you can edit for each page,
- clean addresses,
- structured data written into the template,
- an image pipeline that keeps pages inside Google's speed thresholds,
- forms that fail gently, and
- markup a screen reader can follow.
None of these need a plugin. All of them are awkward to add once a site is live.
This guide sets out what each of those decisions looks like in practice and how we handle them in a Django build. It also sets out the questions to ask any designer before you sign a quote.
Why SEO and UX cannot be bolted on later
The expensive pattern goes like this. A business hires a designer to make the site look right. Six months later it hires an SEO consultant to make it rank, and later still a conversion specialist to make it convert. Each one works around decisions the previous person locked in, and each one bills for the workaround. It is plumbing fitted after the walls are plastered.
Several things get locked in on day one and are costly to change afterwards:
- The address structure. Change page URLs after launch and every old address needs a redirect, or the rankings attached to it are lost.
- The heading structure. Themes that use headings for styling rather than meaning leave Google guessing what each page is about.
- The page weight. A theme that loads every script it might ever need sets a speed ceiling no amount of image compression can lift.
- The forms. Form handling that lives in a third-party widget cannot be tuned, tracked or validated the way your enquiries need.
Most of the website design mistakes we see on small business sites trace back to one of these four. Most of them were cheap to avoid and dear to fix.
What "SEO built in" looks like in the code
One heading hierarchy, written into the template
Every page gets exactly one h1, which is the page's subject, followed by h2 sections and h3 sub-points in order. This is set in the template, so an editor adding a page cannot break it by picking a heading for its font size. Google reads the outline the same way a person skimming would.
Titles, descriptions and addresses you control per page
The admin area has a title field, a description field and an editable slug for every page and post. When a slug changes, the old address is redirected automatically. This is the single most useful SEO feature a site can have. It is a day's work to build properly in Django and a lifetime of plugin updates on a builder.
Structured data that does not depend on a plugin
Local business schema (name, address, opening hours, service area), service schema and FAQ schema are generated from the same fields the page displays. So they can never disagree with the visible content. In this article, for example, the FAQ schema is built word for word from the "Questions people ask" section. On-page, technical and content SEO all depend on this kind of consistency.
Images, sitemap and canonical tags handled automatically
Photos are resized on upload, served in modern formats with a fallback, and output with width and height set so nothing shifts as they load. The sitemap is generated from the database, so a new page is in it the moment it is published. Each page declares its own canonical address, which stops tracking parameters and trailing variants being indexed as duplicates.
What "UX built in" looks like
Speed is the first UX decision
A visitor's first experience of your site is the wait. Google's published thresholds for a good page are 2.5 seconds for Largest Contentful Paint, 200 milliseconds for Interaction to Next Paint and 0.1 for Cumulative Layout Shift. The same things that pass those tests are what make a page feel instant. The Core Web Vitals guide explains each metric; the design decision is simply to budget for them before choosing a hero video. That performance budget is the first of the website design trends for 2026 we think are real.
Navigation around the three things a visitor came to do
On a business site those three things are usually: see what you do, see roughly what it costs, and get in touch. The navigation should put those within one tap on a phone, with the phone number as a tappable link. The quote or booking form should never be more than one click away. Everything else goes in the footer. Our mobile-first design checklist covers the tap targets and type sizes that make this work on a small screen.
Forms that fail gently
Validation happens as the visitor types, errors are explained in words next to the field, and what they have already entered is never thrown away. A confirmation email goes to them and an alert goes to you. Spam is filtered on the server rather than by a puzzle the visitor has to solve.
Accessibility is part of UX, not an add-on
We build to WCAG 2.2 level AA: body text with at least a 4.5:1 contrast ratio, every control reachable by keyboard with a visible focus state, labels attached to inputs, and alt text on images that carry information. In the UK the Equality Act 2010 places a duty on service providers to make reasonable adjustments, and websites are covered. An accessible site is also a clearer site for everyone reading it on a phone in sunlight.
How this works in a Django build
In practice it comes down to a handful of habits. One base template carries the head section, the navigation, the footer and the structured data, and every page extends it, so a fix made once applies everywhere. A page model holds the title, description, slug and body, and the admin exposes those fields in plain language. The sitemap and the redirect table are part of the framework, not extras.
Before launch the whole site lives on a staging address the client can click through on their own phone. At launch every old address gets a 301 redirect to its new equivalent, and we fix anything that comes up free for 30 days. That is the standard process for our hand-coded business websites, whether the site is a six-page brochure or a quote funnel like the one we built for Joe's Fencing. That site exists to turn local searches into quote requests and was built around that single job.
Questions to ask a designer before you sign
- Can I edit the title, description and address of every page myself, and what happens to the old address when I change one?
- Where does the structured data come from, and what breaks if a plugin stops being maintained?
- What is the page weight of the home page template before any content is added?
- Which Core Web Vitals score will the finished site report in PageSpeed Insights on a mobile connection?
- Is the site built to WCAG 2.2 AA, and will you show me the contrast checks?
- Will I get a staging site to test on my own phone before launch?
- Will every old address be redirected on launch day?
- Who owns the code, and whose name is on the domain and hosting?
A designer who answers all eight without hesitation is building SEO and UX in. One who treats them as a separate quote is planning to bolt them on. The SEO checklist for small businesses is a useful thing to hand over with the brief, because it turns each of these into something you can check after launch.
Questions people ask
Is SEO included in website design?
Sometimes, and the word covers two different things. Technical SEO (structure, speed, titles, schema, sitemap, redirects) is a property of how the site is built and should be included in any competent build. Ongoing SEO (writing new pages, earning links, tracking rankings) is a separate monthly activity. Ask which one a quote means.
What is the difference between UX and UI?
The user interface is what a page looks like: layout, colour, type. The user experience is what it is like to use: how long it takes to load, whether the next step is obvious, whether the form works. A site can have a good UI and a poor UX, and that is usually the state a template site is in.
Can SEO be added to an existing website?
Yes, within limits. Titles, descriptions, content and schema can be improved on most platforms. Page weight, address structure and heading structure usually cannot be changed without a rebuild. That is why the second SEO engagement on a builder site so often ends with a recommendation to move.
Where to start
If you already have a site, run it through our free website health check and look at three things. Check the mobile speed score, whether each page has its own title and description, and whether the home page has one heading that says what the business does. Those three answers tell you whether SEO and UX were built in or left for later.
If you are commissioning a new site, put the eight questions above in the brief. The answers will sort your shortlist faster than any portfolio.