Skip to main content
Back to projects

WordPress · custom theme · PHP

A cafe website the owner can actually run.

I designed and built Moments Cafe as a hand-coded WordPress theme: a warm, editorial marketing site for a neighborhood cafe, with the everyday details placed where a non-technical owner can change them.

In short: a custom classic WordPress theme written in PHP, CSS, and a few lines of vanilla JavaScript. It covers the menu, the cafe’s story, and visit details, adds an owner-editable Cafe Details panel to the Customizer, and runs locally with Docker. Built by Daryll, AI Engineer | Full Stack Software Engineer.

plugins or page builders
0
owner-editable details
7
command to run locally
1

Homepage

The Moments Cafe homepage: an announcement bar, navigation, and the headline "Take your time. Taste the moment." over a photo of a latte and croissant in a softly lit cafe
The homepage opens on a full-bleed photo and a serif headline. The announcement bar, address, and hours shown across the site are all editable from the WordPress dashboard.

THE CHALLENGE

Look bespoke. Stay easy to manage.

Small hospitality businesses tend to get one of two websites: a generic template that looks like every other cafe, or a custom build they can’t update without calling a developer. Neither holds up once hours change, a holiday announcement is needed, or the phone number moves.

The goal was a site with a clear identity of its own, a calm, slow-down mood that matches the cafe, built on WordPress so the owner keeps control of the details that change most often.

THE BUILD

One homepage, each section with a single job.

The front-page template moves visitors from mood to menu to story to a reason to visit. Forest green, cream, and terracotta carry the brand, with a serif for headings and a clean sans-serif for reading.

Moments Cafe menu section with three featured item cards and a two-column price list on a dark green background
01 / Menu

Favorites up front, the full list close behind.

Three featured items get large editorial cards on a deep forest background. The rest of the menu follows as a simple two-column price list, so the page stays easy to scan on any screen.

Moments Cafe story section with a CSS-drawn coffee cup illustration beside the heading "A cafe built around the present."
02 / Story

Brand story without a stock photo.

The story section uses an illustrated coffee cup drawn entirely in CSS: no extra image request, and it stays sharp at any size. Two short points describe what makes the cafe different.

Moments Cafe visit section showing address, opening hours, phone, and email beside a stylized map with the cafe pin
03 / Visit

The details people came for.

Address, opening hours, phone, and email sit in one card next to a stylized map. Every value comes from the Customizer, so the owner can change them without a developer.

ON MOBILE

Designed for the phone in a guest’s hand.

Most people looking up a cafe are on their phone and on the move. Below the tablet breakpoint the layout stacks into a single column, buttons stretch to full width for easy tapping, and the navigation becomes a full-screen menu.

A second breakpoint for small phones tightens type and spacing so headlines stay bold without crowding the screen.

Moments Cafe homepage on a phone, with the headline and full-width buttons stacked over the hero photoMoments Cafe menu section on a phone, with the heading and first featured item card in a single column

UNDER THE HOOD

WordPress done the WordPress way.

The theme relies on WordPress’s own APIs rather than plugins, which keeps it fast, secure, and easy to hand over.

Editable by the owner

A dedicated Cafe Details panel in the WordPress Customizer controls the announcement bar, address, phone, email, weekday and weekend hours, and reservation link, with a live preview before publishing.

Safe by default

Each Customizer value is sanitized when saved and escaped when rendered. The email address is obfuscated against scrapers, and template files refuse direct access outside WordPress.

Native WordPress features

The theme registers a primary menu location with a sensible fallback, supports a custom logo and post thumbnails, uses WordPress-managed page titles, and wraps all copy for translation.

Lightweight on purpose

One stylesheet and one small script, loaded through WordPress’s enqueue system. No jQuery, no front-end framework, and no third-party font requests slowing down the first visit.

Accessible navigation

A skip link, visible focus states, and a mobile menu that announces its state to screen readers, closes on Escape, and closes after a link is chosen. Animations respect reduced-motion settings.

Reproducible setup

Docker Compose runs WordPress on PHP 8.3 with MariaDB 11.4 and mounts the theme directly, so the site starts with one command and edits show up on refresh.

THE OUTCOME

A website with its own character that the business can keep current.

Moments Cafe shows how I approach WordPress work: design the experience first, build it as a lean custom theme, and give the client clear, safe controls over the content they’ll actually change.

  • A distinctive, photography-led brand site instead of a reused template
  • Day-to-day details the cafe can update from the WordPress dashboard
  • A responsive layout that holds up from large desktops to small phones
  • A small, readable codebase that another developer can pick up quickly

Built with WordPress, PHP, CSS, vanilla JavaScript, and Docker.

Discuss a WordPress project