Ngiti Dental: A Client-Ready WordPress Theme for Dental Clinics in the Philippines
Most clinics in Bukidnon take bookings through Messenger and phone calls, and their websites rarely show prices, hours or a clear way to ask for a slot. For this week's professional-practice website I built Ngiti Dental, a complete WordPress theme for a sample family dental clinic in Malaybalay City, with a working appointment request form, live opening hours and a tooth-chart service finder.
Ngiti is Filipino for smile. The clinic, its dentists and prices are fictional samples, but the theme is real: it installs from a zip, creates its own pages, and was tested end to end on WordPress 6.5 before I exported the static demo.
Try It: Request an Appointment
This is a compact slice of the clinic site on a phone. The badge uses the clinic's real schedule in Manila time. Open the menu, pick a day and a service, and send a request. Leave the mobile number wrong to see the validation.
Build Footprint & Quality Checks
Clinic sites usually live on shared hosting and are opened on phones over mobile data, so I kept the theme light. These are the measured numbers from the v1.0.0 build:
Technology Stack & Architecture Layers
WordPress 6.3+ Classic Theme
Page templates, Customizer API, three custom post types, shortcodes and an admin-post form handler. PHP is 64% of the code.
CSS Custom Properties
Colour, type and spacing tokens drive light and dark mode. Self-hosted Young Serif and Figtree fonts, responsive down to 360 px.
Vanilla JS & Intl
Mobile menu, theme toggle, a cache-safe open-now badge in Manila time, inline form validation and the FDI tooth finder.
Dentist JSON-LD + Static Export
LocalBusiness schema with opening hours, shared sample content in JSON, and a Python script that exports the live theme to GitHub Pages.
Key Architectural Decisions
Enter It Once
Phone, address and hours live in the Customizer. The header, footer, sticky call button, hours table, open-now badge and JSON-LD all read the same values.
A Careful Form Pipeline
Nonce, honeypot, sanitize, validate (PH mobile, open day, real service), rate limit, save a private request, email with wp_mail(), then redirect with a reference number.
Cache-Safe Hours
PHP prints the weekly schedule; the browser decides "Open now" or "Opens Monday at 9:00 AM", so a cached page is never wrong about the lunch break.
Demo Built From the Real Theme
The static demo is exported from the theme running on WordPress, not rebuilt by hand, so what clients click is what they get.
Form Validation, Open-Now Logic & Usage
Three real pieces of the theme: the server-side checks every appointment request passes, the browser function behind the open-now badge, and how a developer uses the theme's shortcodes and hooks.
// inc/appointment-form.php (inside ngiti_handle_request)
$errors = array();
if ( '' === $name || mb_strlen( $name ) > 80 ) {
$errors[] = 'name';
}
if ( '' === $mobile ) {
$errors[] = 'mobile';
}
if ( '' !== $raw_em && ! is_email( $email ) ) {
$errors[] = 'email';
}
if ( 'appointment' === $type ) {
$allowed = wp_list_pluck( ngiti_get_services(), 'title' );
$allowed[] = __( 'Not sure / consultation', 'ngiti-dental-theme' );
if ( ! in_array( $service, $allowed, true ) ) {
$errors[] = 'service';
}
if ( ! ngiti_valid_date( $date ) ) {
$errors[] = 'date';
}
} elseif ( '' === $message ) {
$errors[] = 'message';
}
if ( ! $consent ) {
$errors[] = 'consent';
}
if ( $errors ) {
$fail( $errors );
}
// assets/js/theme.js (runs in the visitor's browser)
/** Pure status function (exported for tests): week = {1:[["09:00","12:00"],...],...}. */
function computeStatus(week, now, soonMin) {
soonMin = soonMin || 30;
var today = week[now.day] || week[String(now.day)] || [];
for (var i = 0; i < today.length; i++) {
var o = toMin(today[i][0]), c = toMin(today[i][1]);
if (now.min >= o && now.min < c) {
return { state: c - now.min <= soonMin ? 'soon' : 'open', at: c, offset: 0 };
}
}
for (var k = 0; k < 8; k++) {
var day = ((now.day - 1 + k) % 7) + 1;
var r = week[day] || week[String(day)] || [];
for (var j = 0; j < r.length; j++) {
var start = toMin(r[j][0]);
if (k > 0 || start > now.min) { return { state: 'closed', at: start, offset: k, day: day }; }
}
}
return { state: 'closed', at: null, offset: 0 };
}
<!-- Put the forms on any page -->
[ngiti_appointment_form]
[ngiti_contact_form]
<!-- Customize > Clinic details > hours (24h, comma = lunch break) -->
Mon-Fri: 09:00-12:00,13:00-17:00
Saturday: 09:00-13:00
Sunday: (empty = closed)
// Send every request to Google Sheets, SMS or a CRM
add_action( 'ngiti_request_received', function ( $ref, $lines, $type ) {
wp_remote_post( 'https://script.google.com/macros/s/YOUR_ID/exec', array(
'body' => array( 'ref' => $ref, 'details' => implode( "\n", $lines ) ),
) );
}, 10, 3 );
// Reuse the theme for a vet clinic
add_filter( 'ngiti_schema', function ( $data ) {
$data['@type'] = 'VeterinaryCare';
return $data;
} );
Development Roadmap & Milestones
Version 1.0.0 is released. The next milestones come straight from the project's roadmap:
v1.0.0: Complete Clinic Theme (Released)
Nine page templates, services and team post types, secure appointment and contact forms, Customizer clinic details, live hours, tooth finder, Dentist JSON-LD, dark mode and sample content.
Next: Real-Time Slot Picker
Show only free times by reading confirmed appointments, with staff able to block dates from wp-admin.
Planned: Tagalog & Cebuano
Translations built from the bundled .pot file so the whole site and its forms can switch language.
Planned: Holiday Closures
Closed dates in the Customizer that update the hours table, the open-now badge, the date check and the schema.
User Interface & Feature Showcase
Project Links, Code & Documentation
Live Demo & Download
Click through all eleven pages of the sample clinic site, or get ngiti-dental-theme.zip from the release and install it under Appearance → Themes → Upload.
GitHub Repository
Browse the source, download v1.0.0 or request a feature. The theme is free and open source under GPL-2.0-or-later.
How It Was Built
A plain-language build log: the languages used, every step in order, the test results and the problems fixed along the way.
A Clinic Website That Books, Not Just Brochures
Patients want three things from a clinic website: is it open, how much, and how do I get a slot. Ngiti Dental answers all three on every page and gives the front desk a clean list of requests. Want one for your clinic, practice or office?
Frequently Asked Questions
Is the Ngiti Dental theme free to use?
Yes. It is free and open source under the GPL-2.0-or-later license, so you can use it on client sites and change the code. The bundled fonts use the SIL Open Font License.
Does it work on Blogger, or do I need WordPress?
It needs a self-hosted WordPress site (WordPress 6.3 or newer, PHP 7.4 or newer). It does not run on Blogger. You install it by uploading the zip under Appearance, Themes, Add New.
Where do appointment requests go, and is patient data sent anywhere else?
Each request is saved as a private post in your own WordPress dashboard and emailed to the clinic with wp_mail. Nothing is sent to outside services, and the theme loads no external fonts, scripts or trackers.
Can this website be customized for my business?
Yes. The clinic name, logo, colours, services, prices, team, hours and contact details are all editable, and the same templates fit a veterinary clinic, physical therapy clinic or law office.
How much does a website like this cost?
It depends on the number of pages, content, photos, hosting and how the forms should be delivered. Message me with what your clinic needs and I will send a quote.
Can you set this up for my business website?
Yes. I can install the theme, rebrand it with your logo, colours, services, team and hours, connect the forms to your email or Google Sheets, and hand over a site your staff can update. Contact me here.
Ngiti Dental Studio, its dentists, credentials, address, phone number and prices are fictional samples created for this showcase. The privacy notice and disclaimer are templates and should be reviewed for a real clinic.

Comments
Post a Comment