Architecture: The Sugartown Digital Ecosystem (v1.0)
Executive Summary
This ecosystem represents the “Digital Factory” for Sugartown.io. It creates a strict separation of concerns between Content (The “Brain”), Code (The Theme/Repo), and Assets (The Storage). The goal is a resilient, portable, and headless-ready architecture that allows for safe experimentation locally before deploying to production.
1. The 3-Zone Architecture
2. The “Sugartown Pink” Theme
A custom hybrid Block Theme that merges visual design with functional logic.
Base: Twenty Twenty-Five (TT5).
Visuals: Custom “Pink” branding and Grid Layouts saved via theme.json and block templates.
Logic: functions.php handles data structures, specifically the Case Study CPT registration.
Templates: archive-case-study.html (3-Column Grid) and single-case-study.html.
3. The DevOps Workflow
How we ship changes without breaking the site:
4. Critical Configurations
Database Prefix: SERVMASK_PREFIX_ (Inherited from Prod).
Local URL: http://localhost:10003 (Hardcoded in wp-config.php via WP_HOME).
Custom Post Types: “Case Studies” registered via code in functions.php with slug /case-studies/.