Stack: WordPress 6.5+ • PHP 8.1+ • WooCommerce • theme.json (v3) • SASS / CSS3 • Custom Gutenberg Blocks • ACF
Summary
A bespoke WordPress and WooCommerce theme built from the ground up for a conceptual Cornish specialty coffee roaster. Combines a theme.json-driven design system, custom product metadata templates, and a native Gutenberg menu block with zero page-builder bloat.
Key Technical Highlights
theme.json Design System & Typography: Centralised global colour tokens and typography presets inside theme.json (var(--wp--preset--*)), eliminating CSS specificity conflicts and ensuring seamless styling inheritance across core blocks, custom components, and shop layouts.
Defensive WooCommerce Integration: Declared native WooCommerce theme support and built custom template overrides inside /woocommerce/ to showcase coffee-specific attributes (_roast_level, _origin, _tasting_notes), guarded by class_exists( 'WooCommerce' ) checks so the site degrades gracefully if the plugin is deactivated.
Bespoke Menu Block & ACF Architecture: Paired a custom React-based Cafe Menu block with modular Advanced Custom Fields (ACF) template parts, giving editors intuitive inline controls with 1:1 editor-to-frontend visual parity.
Security, Escaping & Cache-Busting: Audited all templates for strict late output escaping (esc_html(), esc_url(), wp_kses_post()) and implemented dynamic asset versioning via filemtime() and .asset.php manifest hashes to prevent stale stylesheet caching.
Semantic Markup & Developer Portability: Engineered clean HTML5 landmarks with a strict single-<h1> document hierarchy, accompanied by a custom WooCommerce CSV import dataset and technical documentation (JOURNAL.md) for reproducible local setup.
Technical Breakdown
fore-and-forty/
├── assets/
│ └── scss/ # Modular SASS partials aligned with theme.json variables
├── inc/
│ ├── setup.php # Theme supports, editor styles & menu registrations
│ ├── enqueue.php # filemtime() & .asset.php cache-busted asset loading
│ └── woocommerce.php # Defensive WC hooks, wrappers & custom product meta
├── sample-data/
│ └── coffee-data.csv # Pre-formatted WooCommerce import data with custom meta
├── template-parts/ # Modular ACF hero & brand storytelling components
├── woocommerce/ # Custom single-product & archive template overrides
├── front-page.php # Static homepage template hierarchy
├── functions.php # Core theme bootstrap
└── theme.json # Global settings, colour palette & typography tokens
Brand & Visual System: Built around a regional Tamar Valley and Cornish coastal identity, pairing display and editorial typefaces (Caacupe One, Questrial, and EB Garamond) with a custom theme.json palette (Navy Dust #3e4245, Picnic Table #5d6766, Mango #bc8946, Aqua Sunkiss #b9c9c2, and Stone Cream #eeeadf).
Custom E-Commerce Metadata: Extended standard WooCommerce product templates using get_post_meta() to surface roast profiles, origin regions, and tasting notes directly within the product summary and shop archive cards.
Content is coming soon. In the meantime… check out the project site: