Freeframe

Documentation

Chalkwell

v1.0.0Updated Dec 5, 2026A quiet, editorial SaaS website for an online course and cohort platform, with a working course builder in the hero.

Overview#

Chalkwell is a website for an online course and cohort platform, built as a WordPress block theme. The fictional Chalkwell, Inc. helps independent teachers (potters, language tutors, fiddle players, bookkeepers and bakers) build a course, run small live cohorts, keep the class talking and get paid. It is based at 41 Langdon Street in Montpelier, Vermont, and works in Eastern time (America/New_York). The theme has a home page whose hero is a working course builder with drip scheduling and a saved outline, a cohort calendar, a product tour with a revenue calculator, pricing with a monthly or yearly switch, a plan estimator, a comparison table and a FAQ, teacher stories filtered by subject, a searchable course showcase with a detail dialog, guides with a topic filter and a newsletter form, a company page with the team, office and open roles, a walkthrough booking form with an Eastern-time slot picker and a 404 page. It is version 1.0.0 (see template.json and style.css), works with WordPress 7.1 and PHP 7.4 or newer, and is the WordPress version of the HTML template of the same name. See it live at freeframe.dev/templates/chalkwell.

Headings, copy, lists, quotes, numbers, plan cards, buttons, the team, the values, the open roles and the pricing questions are core WordPress blocks arranged in block patterns, so you edit them in the block editor without touching code. The parts that are worked out in the browser (the course builder, the cohort calendar, the revenue calculator, the plan estimator, the comparison table, the teacher story list, the course showcase and its dialog, the guide list and newsletter form, the support hours note and the walkthrough booking form) work as in the HTML version: they are Custom HTML blocks driven by assets/js/main.js, which reads Chalkwell's content from assets/js/data.js. The drawings, course covers and portraits are Custom HTML blocks with inline SVG. Colors and fonts are design tokens in theme.json: change them in Appearance > Editor > Styles and the whole site follows. Every upcoming date is worked out in Eastern time from rules rather than fixed dates, so the demo never goes stale.

The look is minimal and editorial, like a small-press catalog: a warm paper page, hairline and double rules, numbered sections, italic serif kickers, drawn course covers and portraits, and one mulberry accent. Headings are set in Ibarra Real Nova and body text in Ysabeau Office. The site is light only.

Quick start#

Requirements: WordPress 7.1 or newer and PHP 7.4 or newer. No plugins are needed.

  1. Download chalkwell.zip from freeframe.dev/templates/chalkwell (the WordPress tab).
  2. In your WordPress admin go to Appearance > Themes > Add New Theme > Upload Theme, choose the zip and click Install Now, then Activate. The theme is listed as Freeframe Chalkwell.
  3. Go to Appearance > Chalkwell setup and click Create the demo pages. This creates the Home, Product, Pricing, Teachers, Courses, Guides, Company and Start teaching pages from the theme's page patterns, sets Home as the front page (Settings > Reading) and creates the header menu. Pages that already exist with the same slug are left alone, so it is safe to click it again.
  4. Visit your site. Edit any page in Pages, and the header, footer and templates in Appearance > Editor.

You can also try the theme without installing anything: the Try it in WordPress button on freeframe.dev opens it in WordPress Playground (WordPress running in your browser) with the demo pages already set up.

To work on the theme's files locally you need Node.js 24 and pnpm; WordPress itself runs in WordPress Playground, so there is no PHP, web server or database to install:

sh
pnpm install
pnpm dev     # builds the CSS, then starts WordPress with the theme at http://127.0.0.1:9400

pnpm dev signs you in as admin (password password) and creates the demo pages. The site is rebuilt from scratch every time you start it; your edits to theme files are live, edits made in the WordPress admin are not kept.

Pages#

Each page is a page pattern (in Patterns > Chalkwell pages) made of section patterns. Every section is also offered on its own in the block inserter under Patterns > Chalkwell.

Page Slug Page pattern Sections (pattern files in patterns/)
Home / page-home.php home-hero (course builder and drip calendar), home-contents (four tools), home-cohorts (cohort calendar), home-quote, home-numbers, home-stories, home-cta
Product /product/ page-product.php product-hero, product-builder (#builder), product-cohorts (#cohorts), product-community (#community), product-payments (#payments, revenue calculator), product-leave-out
Pricing /pricing/ page-pricing.php pricing-hero (billing switch), pricing-plans (four plans and the trial date), plan-estimator, compare-plans, billing-faq
Teachers /teachers/ page-teachers.php teachers-hero, stories (filters and the list from STORIES), teachers-cta
Courses /courses/ page-courses.php courses-hero, course-catalog (search, filters and the list from COURSES), courses-cta, course-dialog
Guides /guides/ page-guides.php guides-hero, guides-featured (featured guide, newsletter form and product log), guides-archive (from GUIDES)
Company /company/ page-company.php company-hero, story, values, team, office (map and support hours note), roles (#roles)
Start teaching /start/ page-start.php walkthrough
404 any missing URL templates/404.html 404

WordPress posts use templates/single.html; the blog, archives and search results use templates/index.html, templates/archive.html and templates/search.html.

Project structure#

freeframe-chalkwell/
  style.css                 theme header (name, version, requirements, license); no styles
  theme.json                design tokens: palette, fonts, font sizes, spacing, layout widths, button
  functions.php             loads the files in inc/
  inc/setup.php             stylesheet and scripts (with the script's strings and page URLs), editor
                            styles, theme color, meta descriptions and favicon, page titles,
                            pattern categories
  inc/icons.php             registers assets/icons/*.svg for the Icon block
  inc/icon-labels.php       the icons' names shown in the editor
  inc/block-styles.php      button block styles
  inc/site-setup.php        Appearance > Chalkwell setup: creates the demo pages and the menu
  templates/                page.html (pages), page-with-title.html, single.html, index.html,
                            archive.html, search.html, 404.html
  parts/                    header.html and footer.html (they show the header and footer patterns)
  patterns/                 every section and page (PHP files with block markup)
  assets/css/theme.css      the compiled stylesheet (do not edit: built from src/)
  assets/css/editor.css     the same for the block editor (generated by src/editor-css.mjs)
  assets/js/data.js         Chalkwell's content (window.CHALKWELL): OUTLINE_DEFAULT, COHORTS, PLANS,
                            STORIES, COURSES, GUIDES, WALK_TIMES and more
  assets/js/main.js         every interaction (the HTML version's script plus a WordPress adapter)
  assets/icons/             the icons used by Icon blocks (outline SVG paths)
  assets/img/               logo.svg, favicon.svg and the social image
  assets/fonts/             Ibarra Real Nova and Ysabeau Office, with their licenses
  src/theme.css             the Tailwind CSS source of assets/css/theme.css
  src/icons.css             icons drawn before or after text with CSS (generated)
  src/editor-css.mjs        writes assets/css/editor.css after each build
  languages/                freeframe-chalkwell.pot, the template for translations
  blueprint.json            WordPress Playground setup used by `pnpm dev`
  screenshot.png            the picture shown in Appearance > Themes
  package.json              the CSS build and the local WordPress (Node.js tooling)
  readme.txt, README.md, DOCS.md, CHANGELOG.md, LICENSE.txt

Customizing#

Brand and colors#

The palette is in theme.json (settings.color.palette) and shows in Appearance > Editor > Styles > Colors. The stylesheet maps every Tailwind color to these presets (--color-mulberry: var(--wp--preset--color--mulberry) in src/theme.css), so changing Mulberry in Styles changes every button, link, section number and focus outline that uses mulberry.

Color Value Used for
Paper / Paper 2 #f6f2ea / #eee8dc Page background / alternate sections and table heads
Card #fbf9f4 Raised panels and inputs
Ink, Ink soft, Muted #1b1a17, #48443d, #6a655b Text: headings and body, secondary, captions
Rule / Rule strong #d9d2c4 / #8e877a Hairlines / input borders and chart axes
Mulberry / Mulberry deep #7a2948 / #5e1f37 The accent: links, primary buttons, focus outlines, section numbers / hover
Mulberry soft / Mulberry line #f2e4e8 / #d9b6c2 Tinted backgrounds and underlines behind the accent
Sage, Ochre (and Soft) #5f6f58, #d1a253 Drawings and status marks only

Button text on the accent is Card (near white), so keep the accent dark. The logo (assets/img/logo.svg), favicon.svg, og-image.svg, the course covers in data.js and a few drawings use #7a2948 directly; search for it if you change the accent completely.

The repeated pieces are classes in src/theme.css: .kicker (the italic numbered eyebrow), .h-display, .h-section, .h-card, .lead, .link, .meta, .tnum, .dropcap, .rule-double, .panel, .chip, .seg, .filter-btn, .slot, .day-btn and the form fields (.field, .field-label, .field-error, .field-hint). Add them to any block under Advanced > Additional CSS class(es).

Typography#

Two families are bundled in assets/fonts/ and declared in theme.json (no requests to Google), the same files Google Fonts serves to the HTML version:

  • Ibarra Real Nova (font-serif: headings, numbers, kickers and the logo; 400 to 700, and italic 400 and 500).
  • Ysabeau Office (font-sans: body text, labels and buttons; 400 to 700).

Swap a family in Styles > Typography, or add your own fontFace files to theme.json.

Content#

Page copy (headings, paragraphs, the four tools, the quote, the numbers, the plan cards, the pricing questions, the team, the values and the open roles) is in the pages: edit it in the block editor. Everything the script renders lives in assets/js/data.js on window.CHALKWELL, as in the HTML version:

Constant What it holds
COMPANY Name, timeZone (America/New_York), phone, email and supportHours (09:00 to 17:30, Eastern)
CLOSED_DAYS, TRIAL_DAYS Extra closed days ('YYYY-MM-DD'); free trial length (14 days)
ART Course cover drawings, inner SVG for a 200×130 box
PEOPLE Teachers and team: name, town and portrait settings (skin, hair, style, top, bg, glasses)
SUBJECTS, SUBJECT_TEACHERS, FORMATS Subject filters, how the stories count reads per subject, course formats (cohort, self)
COURSES The 14 showcase courses: id, title, teacher, subject, format, weeks, lessons, hours, price, seats, level, art, bg, blurb, modules
COHORTS Cohort calendar: leadDays: 7, count: 6, and the rotation of courses that start on successive Mondays
OUTLINE_DEFAULT, OUTLINE_LIMITS The builder's starting outline and its limits (6 modules, 8 lessons each, 70-character titles, 1 to 240 minutes)
PLANS, PROCESSING Plans with monthly and yearly prices, per-seat fee and limits; card processing (2.9% + 30¢ per seat)
DEFAULT_PRICING, ESTIMATE_LIMITS Pricing estimator defaults and allowed ranges
REVENUE_DEFAULT, REVENUE_LIMITS Revenue calculator defaults and allowed ranges
STORIES Ten teacher stories, two per subject
GUIDE_TOPICS, GUIDES, GUEST_AUTHORS Guide topics, the back issues (fixed past dates) and guest writers
WALK_DAYS, WALK_TIMES, WALK_LENGTH_MIN Walkthrough slot picker

Example: add a course. Give it a unique id, a teacher from PEOPLE, a subject from SUBJECTS, a format from FORMATS and an art key from ART:

js
{ id: 'rug-hooking', title: 'Hooked Rugs From Wool Scraps', teacher: 'fiorella', subject: 'making', format: 'self',
  weeks: null, lessons: 9, hours: 4, price: 120, seats: null, level: 'Beginner', art: 'dye', bg: '#e3e8dc',
  blurb: 'Cut strips, hook a sampler and finish the edge, from wool you already have.',
  modules: ['Wool and strips', 'Hooking a sampler', 'Finishing the edge'] }

Search, the counts and the detail dialog pick it up automatically. For a live cohort course, set weeks and seats and add its id to COHORTS.rotation so it gets start dates. The filter buttons and the "14 courses" line in the course-catalog pattern are the text shown before the script runs; update them if you want them exact.

The plan cards, the comparison table and the pricing questions on the pricing page are written in the patterns. If you change a plan in PLANS, update the cards, the table rows and the revenue calculator's plan rows in the product-payments pattern to match. The script's links to a course ("courses.html?course=…") and to the Start teaching page ("start.html?plan=…") become your WordPress page URLs through freeframe_chalkwell_page_urls() in inc/setup.php. Edit data.js in a child theme (see Child themes) so an update doesn't overwrite it.

Images and artwork#

All artwork is SVG drawn for this template; there are no photos. The header and footer logo is an Image block (assets/img/logo.svg) next to the name: select it and Replace to use your own. The feature drawings, the product mockups, the Montpelier map and the 404 chalkboard are Custom HTML blocks with inline SVG; replace a block with an Image block (keep roughly the same aspect ratio) when you have real pictures. The course covers and portraits are drawn by the script from ART and PEOPLE in data.js into elements with data-portrait="<person id>" or data-cover="<course id>". If you use photos, covers are 200×130 (about 3:2) and portraits are square, shown in a circle.

The social image is assets/img/og-image.png (1200 x 630, source og-image.svg); the favicon assets/img/favicon.svg is used until you set a Site Icon in Settings > General.

The header and footer are template parts (parts/header.html, parts/footer.html) showing the header and footer patterns. Edit them in Appearance > Editor > Patterns > Header / Footer.

The header has a date line (today in Eastern time, written by the script into data-today, from 768 px), then two Navigation blocks showing the same menu: the desktop one (from 1024 px) and the one in the phone menu. Edit the menu once in Appearance > Editor > Navigation (the setup creates "Main menu": Product, Courses, Pricing, Teachers, Guides and Company). WordPress marks the current page's link with aria-current="page" (drawn as a mulberry line under it, and in mulberry in the phone menu). The "Start teaching" buttons in the header and the phone menu are Button blocks; on the Start teaching page the script marks them as the current page (class ff-current-link). A Navigation block that doesn't point at a menu shows the most recently created one; to pin a menu, select the Navigation block and choose it in the block settings, for both blocks.

The footer's link columns are List blocks: click a link to change it, press Enter to add one. The copyright year is written by PHP and kept current by the script. The address, phone number and email appear in the footer and on the company and start teaching pages; search for them when you change them.

The site is light only: inc/setup.php prints color-scheme: light and the theme color #f6f2ea, so form controls, scroll bars and the browser bar match.

Features#

Course builder#

The home page (home-hero), section 6 of assets/js/main.js (initBuilder, outlineFrom). The builder starts from OUTLINE_DEFAULT: "Wheel-Throwing Foundations" with three modules and 7 lessons, 2 h 26 min in all.

  • Editing: the course title, module titles and lesson titles are text fields; lesson lengths are minutes from 1 to 240. A length outside that range is marked invalid and the total keeps the last good value, which comes back when you leave the field.
  • Reordering: each module and lesson has move up and move down buttons, labeled for screen readers with the row they move ("Move lesson 1.1, Wedging and preparing clay, down"). Focus stays on the moved row's button (or the other one at the end of the list), and the new position is announced ("It is now lesson 1.2.").
  • Adding and removing: "Add a lesson" (up to 8 per module), "Add a module" (up to 6) and a remove button on each row; the last lesson of a module and the last module can't be removed. "Reset outline" restores the example.
  • Drip scheduling: the "Drip schedule" switch (aria-pressed) releases one module every 7 or 14 days, starting today. The preview lists the open date of each module and a month calendar marks them.

With the defaults and drip on, on Saturday, December 5, 2026 the line reads "Starts today, Saturday, December 5. A module opens every week; the last one on Saturday, December 19." The modules open Today, Sat Dec 12 and Sat Dec 19, with 1 h 4 min, 47 min and 35 min of video. Every 14 days moves the last one to Saturday, January 2. One more lesson makes 8 lessons, 2 h 41 min.

The outline is saved as chalkwell:outline and comes back on the next visit with the note "Picked up your saved draft."

Cohort calendar#

The home page (home-cohorts) and the course dialog, section 7 (cohortStarts, initCohorts). Cohorts start on Mondays at least COHORTS.leadDays (7) days after today, and a Monday that is a US federal holiday is skipped. Each Monday runs one course from COHORTS.rotation, picked by the week, so the same Monday always shows the same course. Seats left are worked out from the date and the course (seatsLeft), so every visitor sees the same numbers, between 1 and the course's seats. Three or fewer seats left are shown in mulberry.

On Saturday, December 5, 2026 the six starts are: Dec 14 Spanish for the Kitchen Table (1 seat left of 10), Dec 21 Bookkeeping for Freelancers (7 of 20), Dec 28 Japanese for Your First Trip (8 of 14), Jan 4 Finding Your Singing Voice (8 of 8), Jan 11 Your First Federal Grant (7 of 16) and Jan 25 Italian Through Film (5 of 12); Monday, January 18 is skipped for Martin Luther King Jr. Day. The note above reads "Next start Monday, December 14. Cohorts begin on Mondays and skip federal holidays."

Revenue calculator#

The Product page (product-payments, /product/#payments), section 8 (revenueFor, bestPlan, initRevenue). Inputs: students per cohort (1 to 250), price per seat ($0 to $5,000), cohorts a year (1 to 52) and a plan.

Sales         = students × price × cohorts
Chalkwell     = plan price × 12 (monthly billing) + plan fee × sales
Processing    = seats sold × (price × 2.9% + $0.30)
Take-home     = sales − Chalkwell − processing

The processing rate is stated next to the result and comes from PROCESSING. The recommended plan is the one that leaves the most take-home among the plans that fit the cohort size, with the reason:

Students / price / cohorts Result
14 / $240 / 5 (default, Studio) Sales $16,800, Chalkwell −$804 ($468 plan + 2% of sales), processing −$508, take-home $15,488, $221 per seat; best Studio, "Studio leaves you $384 more a year than School."
8 / $120 / 4 Best Slate, take-home $3,412
30 / $400 / 6 Best School
80 / $150 / 4 "Only School fits 80 students in a cohort."

"Use the best fit" switches the calculator to the recommended plan. A plan that is too small for the cohort says so under the plan menu and in its row ("Over 60 students").

Pricing and plan estimator#

The Pricing page (plan-estimator), section 9 (recommend, loadPricing, initPricing). Prices are in PLANS: Slate free with an 8% per-seat fee, Studio $39 a month or $32 billed yearly with 2%, School $99 or $82 with no fee, Guild custom. The trial line shows today plus TRIAL_DAYS (14): on Saturday, December 5, 2026 it reads "Saturday, December 19".

The estimator takes published courses, students per cohort and teachers (with − and + buttons) and recommends the first plan whose limits fit, with the reason the plan before it doesn't:

Courses / students / teachers Billing Result
3 / 14 / 1 (default) Yearly Studio, $32 a month, $384 billed yearly, saves $84; "Slate includes 1 published course."
3 / 14 / 1 Monthly Studio, $39 a month, $468 a year, billed monthly
1 / 12 / 1 Any Slate, $0
4 / 80 / 1 Yearly School, $82 a month, $984 a year
4 / 30 / 3 Yearly School; "Studio includes 1 teacher seat."
4 / 30 / 8 Any Guild, Custom

The estimate is saved (chalkwell:pricing). URL parameters override it: ?billing=monthly|yearly, ?courses=1–100, ?students=1–1000, ?teachers=1–50. The page writes only billing back to the address bar. "Start with this plan" links to /start/?plan=<id>. The pricing questions are core Details blocks.

Teacher stories#

The Teachers page (stories), section 10 (initStories). Subject buttons filter STORIES; the URL keeps the choice as ?type= (a key of SUBJECTS: making, languages, music, work, food). Each subject has 2 of the 10 stories, and the count reads, for example, "2 stories from language teachers". Unknown values show all stories.

Course showcase#

The Courses page (course-catalog, course-dialog), section 11 (initCourses). Search matches the title, description, teacher, subject, level and modules. Subject buttons show counts (All 14, Making 4, Languages 3, Music 2, Work skills 3, Food 2) that follow the format and the search; the format buttons pick "All formats", "Live cohorts" (9 courses) or "Self-paced" (5), and the count line reads, for example, "9 live cohort courses". Searching "spanish" finds 1. The URL keeps ?subject=, ?format=cohort|self and ?q=. When nothing matches, "Show all courses" resets them.

Each card opens a native <dialog> with the cover, teacher, syllabus, price and, for live cohort courses, the next three start dates from the cohort calendar with seats left. The URL keeps ?course=<id> while it is open, so /courses/?course=spanish-table opens straight to it. Escape or "Close" returns focus to the card.

Guides and newsletter#

The Guides page (guides-featured, guides-archive), section 12 (initGuides, initLetter). GUIDES are listed newest first; topic buttons (All 10, Pricing 2, Teaching online 3, Finding students 3, Running a school 2) keep the choice as ?topic=. Guides and the product log keep their real past dates. The newsletter goes out on the first Thursday of each month; the form names the next one strictly after today (nextLetterDay), "Thursday, January 7" on December 5, 2026.

Support hours note#

The Company page (office) and the Start teaching page, section 13 (initSupportStatus). Using COMPANY.supportHours and Eastern time, it reads "Teacher support is open now, until 5:30 p.m. Eastern." on business days from 9:00 a.m. to 5:30 p.m., and otherwise "Teacher support opens today/tomorrow/Monday at 9:00 a.m. Eastern.", skipping weekends, federal holidays and CLOSED_DAYS.

Walkthrough slot picker#

The Start teaching page (walkthrough), section 15 (walkDays, initStart). Days are the next WALK_DAYS (5) business days strictly after today in Eastern time: never today, never a Saturday or Sunday, a US federal holiday or a date in CLOSED_DAYS. Each day offers WALK_TIMES (9:30, 10:30 and 11:30 a.m., 1:00, 2:00, 3:00 and 4:00 p.m. Eastern). Some times show as taken by a fixed pattern per date (slotTaken), and every day keeps at least three open. Below the slots, a note says times are Eastern and, when the visitor's zone is different, gives the day's first time in their zone.

Examples: on Saturday, December 5, 2026 the days are Monday, December 7 to Friday, December 11. On Wednesday, December 23, 2026 they are December 24, 28, 29, 30 and 31 (Christmas Day is skipped). On Thursday, December 31, 2026 they start on Monday, January 4, 2027, because New Year's Day falls on a Friday.

Day and time buttons use aria-pressed; each day button tells screen readers how many times are open, and picking a time is announced.

The menu button (#menu-toggle) opens the phone menu with aria-expanded; Escape closes it and returns focus. Sections with reveal fade in once as they scroll into view; with reduced motion they show immediately.

Keeping the demo current#

Nothing dated goes stale. Everything "upcoming" is computed from today in Eastern time (COMPANY.timeZone):

Content Rule Switch
Drip calendar Modules open from today, every 7 or 14 days Builder controls
Cohort starts Mondays at least 7 days out, skipping federal holidays COHORTS
Walkthrough days Next 5 business days after today WALK_DAYS, WALK_TIMES, CLOSED_DAYS
Trial end date Today plus 14 days TRIAL_DAYS
Next newsletter First Thursday of a month, after today nextLetterDay in main.js
Support note Open now, or the next business day's opening time COMPANY.supportHours
Date line and copyright year Today written by PHP (the year), filled again by the script

Federal holidays are worked out for any year by rule (federalHolidays in section 3 of main.js): New Year's Day, Martin Luther King Jr. Day, Washington's Birthday, Memorial Day, Juneteenth, Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving and Christmas Day. A holiday on a Saturday is observed the Friday before, one on a Sunday the Monday after. Add office closures as 'YYYY-MM-DD' strings in CLOSED_DAYS.

Guides, the product log, the company story and story "since" years keep their fixed past dates. For reviews and screenshots, ?now=YYYY-MM-DDTHH:MM (read as Eastern time) pretends it is another moment, for example /start/?now=2026-12-23T10:00; turn it off with ALLOW_NOW_PARAM = false at the top of main.js.

Block styles#

In the block settings' Styles panel:

Block Styles
Button Default (the mulberry button), Ink (dark), Outline (a hairline border)

The class is-small on a Button block makes it the smaller size. The arrow after button text is drawn with CSS (icon-after-arrow-right, from src/icons.css). The pricing questions are Details blocks with the class ff-faq, which draws the plus sign that turns when a question is open.

Forms#

All forms validate in the browser with inline messages linked by aria-describedby, focus the first problem and then show a success panel. A message clears as soon as the field is fixed. No form sends anything until you connect it, and the success panels don't claim an email was sent.

Form Page Checks Success
Walkthrough request (data-start-form) Start teaching A day and time, first and last name, email format, what you teach, how you teach today "Thanks, {first name}. Your walkthrough request is in.", the time in Eastern, a reference like CW-4821, the email and subject, and what happens on the call
Newsletter (data-subscribe-form) Guides Email format "You’re on the list." with the next letter's date

The Start teaching page reads ?plan=slate|studio|school|guild to show the plan from the pricing page, and ?subject=making|languages|music|work|food to preselect what you teach. Phone, class size and the message (up to 500 characters, counted) are optional. The chosen slot is sent in the hidden slot field as YYYY-MM-DDTHH:MM in Eastern time, and the plan in the hidden plan field.

To connect a form service such as Formspree, add the request inside setupForm in assets/js/main.js (section 14, "Form helper", in a child theme), where it calls onSuccess, and show the success panel only when the service answers OK:

js
fetch('https://formspree.io/f/your-id', { method: 'POST', body: new FormData(form), headers: { Accept: 'application/json' } })
  .then(function (r) { if (r.ok) onSuccess(form); else showError(); });

You can also replace a form's Custom HTML block with a form plugin's block; add the classes field-label, field and btn-mulberry to its labels, fields and button so it matches.

Saved data (localStorage)#

All storage goes through safeStorage in main.js, which falls back to memory when localStorage is blocked (private modes, sandboxed frames), so the features keep working for the visit.

Key Shape Validation
chalkwell:outline { "title": "…", "drip": true, "every": 7, "modules": [{ "title": "…", "lessons": [{ "title": "…", "min": 18 }] }] } 1 to 6 modules, 1 to 8 lessons each, string titles (trimmed to 70 characters), whole minutes from 1 to 240, every 7 or 14; anything else falls back to the example
chalkwell:pricing { "billing": "yearly", "courses": 3, "students": 14, "teachers": 1 } billing must be monthly or yearly; each number a whole number inside ESTIMATE_LIMITS

These are the HTML version's keys. "Reset outline" in the builder restores the example outline. To clear either key, remove it in the browser's developer tools (Application > Local Storage).

SEO and sharing#

Page titles come from WordPress: the page title, a vertical bar and the site name (for example "Pricing: plans for independent teachers and small schools | Chalkwell"); the home page shows "Chalkwell: courses and cohorts for independent teachers", built from the site title and tagline (Settings > General) by freeframe_chalkwell_front_title(). The theme prints the HTML version's meta description on the demo pages (freeframe_chalkwell_page_description() in inc/setup.php, by page slug); edit them there, or let an SEO plugin such as Yoast SEO, Rank Math or The SEO Framework take over. The theme doesn't output Open Graph tags: give your SEO plugin assets/img/og-image.png (or your own 1200 x 630 image) as the default social image. WordPress already generates a sitemap at /wp-sitemap.xml.

Accessibility#

Built in: a skip link to the main content (added by WordPress, styled by the theme), landmarks (header, labeled navigation, main, footer), one h1 per page, sections labeled by their headings, visible mulberry focus outlines, AA contrast on paper, builder changes, filter results, estimator results and slot choices announced in a polite live region (#live-region), filters, the billing switch, the drip switch and slot buttons with aria-pressed, builder move buttons whose labels name the lesson or module and that keep focus after a move, a native <dialog> for courses, Details blocks for the pricing questions, form errors linked with aria-describedby, a comparison table that scrolls sideways inside a focusable region on small screens, and reduced-motion support.

When you edit: keep one Heading 1 per page, give images alt text (or mark them decorative) and label every field you add.

Building and deploying#

You only need this if you change the theme's files. The stylesheet assets/css/theme.css is compiled with Tailwind CSS from src/theme.css and the classes used in patterns/, parts/, templates/, inc/ and assets/js/:

sh
pnpm install
pnpm build   # compile assets/css/theme.css and assets/css/editor.css
pnpm watch   # recompile assets/css/theme.css on every change (run pnpm build before you commit)

Run pnpm build after adding a utility class to a pattern, template or the script's markup, otherwise the class has no style; keep each class name whole in the script (not built from pieces). Classes you type in the editor's Additional CSS class(es) field are only styled if the stylesheet already contains them.

To deploy, zip the theme folder (named freeframe-chalkwell, without node_modules/) and upload it in Appearance > Themes, or copy the folder to wp-content/themes/ on your server. Use HTTPS, and connect the forms before you go live.

Translations#

The theme is translation-ready with the text domain freeframe-chalkwell. All text in patterns, templates and PHP goes through WordPress's translation functions; the script's own labels and messages (validation errors, the menu button, the builder's buttons) are translated in PHP (freeframe_chalkwell_script_strings() in inc/setup.php). Sentences the script builds from pieces (dates, counts, prices, announcements) are written in English in main.js; translate them there. Chalkwell's content in assets/js/data.js is edited there directly. Create a translation with Loco Translate, or with WP-CLI and Poedit:

sh
wp i18n make-pot wp-content/themes/freeframe-chalkwell wp-content/themes/freeframe-chalkwell/languages/freeframe-chalkwell.pot

Save freeframe-chalkwell-es_ES.mo (for example) in wp-content/languages/themes/ or in the theme's languages/ folder. Page content created by Chalkwell setup is copied into your pages in the site's language at that moment; translate it in the editor like any other content.

Child themes#

Use a child theme for changes you want to keep when Chalkwell is updated (your courses, plans, stories and guides in particular). Create wp-content/themes/chalkwell-child/style.css:

css
/*
Theme Name: Chalkwell Child
Template: freeframe-chalkwell
*/

Templates, parts, patterns and theme.json in the child theme override the parent's files of the same name. To use your own data.js, replace the parent's data script (freeframe-chalkwell-data) under the same handle in the child's functions.php:

add_action( 'wp_enqueue_scripts', function () {
	wp_deregister_script( 'freeframe-chalkwell-data' );
	wp_register_script( 'freeframe-chalkwell-data', get_stylesheet_directory_uri() . '/data.js', array(), '1.0', array( 'in_footer' => true, 'strategy' => 'defer' ) );
}, 25 );

Do the same for assets/js/main.js (handle freeframe-chalkwell), keeping the inline window.freeframeChalkwell strings and URLs. The parent's stylesheet only contains the classes the parent uses: if your child theme uses new utility classes, compile a stylesheet for the child (copy package.json and src/theme.css, point the @source lines at the child's folders) and enqueue it.

Troubleshooting#

  • The pages look unstyled or new classes do nothing. The stylesheet only contains classes it found when it was built. Run pnpm build after editing patterns, then reload.
  • "This block contains unexpected or invalid content". A pattern or page was edited by hand with markup that doesn't match the block. Click Attempt recovery, or re-insert the section from Patterns > Chalkwell.
  • The builder shows an old outline. It's saved in chalkwell:outline. Click "Reset outline" or remove the key.
  • The pricing estimate isn't the default. It's saved in chalkwell:pricing, and URL parameters override it. Remove the key or open the pricing page without parameters.
  • A cohort Monday or walkthrough day is missing. It is a federal holiday (or its observed day), a weekend, or in CLOSED_DAYS for walkthroughs.
  • A course has no start dates. Live cohort courses get dates only when their id is in COHORTS.rotation.
  • Dates look a day off. Dates are computed in Eastern time; change COMPANY.timeZone in data.js for another home zone, and the "Eastern" wording in main.js and the patterns. Check for a leftover ?now= in the URL.
  • A course link or "Start with this plan" goes to the wrong page. The script links to /courses/ and /start/. If you renamed the pages, change their URLs in freeframe_chalkwell_page_urls() in inc/setup.php.
  • A form says it's sent but nothing arrives. The forms are not connected; see Forms.
  • Chalkwell setup says the pages exist, but they are empty. It never overwrites existing pages. Delete (and empty the trash of) the pages with those slugs, or open each page and insert its page pattern from Patterns > Chalkwell pages.

License#

Split license: the PHP code and block markup are licensed under the GNU GPL, version 2 or later, and the CSS, JavaScript, images and design under the Freeframe Commercial License (unlimited sites for you and your clients; no resale or redistribution as a theme). The full terms, with your licensee details, are in LICENSE.txt and at https://freeframe.dev/license#commercial. Third-party components keep their own licenses. Fonts: Ibarra Real Nova and Ysabeau Office are licensed under the SIL Open Font License 1.1 (OFL.txt in each folder of assets/fonts/). Chalkwell, its teachers, courses, students and people are fictional.

Search documentation

Search the guides and every template's documentation