🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Themes••By Komal Nakrani

Build a Dentist Website with Astro: Treatments and Booking

Build a dentist website with Astro: treatment pages with fees, new patient and emergency pages, online booking links, Dentist schema and fast static hosting.

#Astro#Dentist Website#Dental Practice#Local SEO

To build a dentist website with Astro, give every treatment its own page with fees and what to expect, add dedicated new patient and emergency pages, link the Book button to your practice management software’s online booking, and add Dentist structured data with opening hours. A dentist website built with Astro is static, so it loads quickly on the phones people use when a tooth starts hurting, and it never stores patient data on your web server.

This guide focuses on what’s specific to dental practices: emergency appointments, fees and payment plans, insurance, and nervous patients. For a broader healthcare build, see build a medical clinic website with Astro.

Key Takeaways

  • Dental visitors fall into three groups: emergencies, new patients and existing patients. Give each a clear path from the home page.
  • Publish fees, or “from” fees, for common treatments. Price is one of the first things patients compare.
  • A dedicated emergency page with a phone number and same-day policy is often the most valuable page on the site.
  • Send bookings to your practice software instead of collecting health details in website forms.
  • Add Dentist JSON-LD and keep name, address, phone and hours identical to your Google Business Profile.

What patients look for on a dentist website

Most visits to a dental site start with one of a few questions. Answer each on its own page.

Page What it must answer
Home Location, hours, accepting new patients, emergency number, Book button
Treatments One page per treatment: what it is, fees, visits, recovery
Emergency dentist Same-day availability, what counts as an emergency, out-of-hours advice
New patients What the first visit involves, what to bring, fees, forms
Fees and payment Price list, payment plans, insurance accepted
Team Dentists, hygienists and their registration numbers
Nervous patients Sedation options, how you make visits easier
Contact Address, parking, accessibility, map link

Put the emergency phone number in the header on mobile as a tel: link. Someone in pain won’t scroll for it.

Create the project

# Terminal
npm create astro@latest dental-site
cd dental-site
npx astro add sitemap
npm run dev

To start from a finished design, the Astro medical themes category includes many dental designs. Dental Health lists visit count and chair time first on every treatment page, and Alveora is a trust-focused dental practice template with case studies, service pages, team profiles and a blog. Free starting points include Astro’s official starters and general business templates like AstroWind, though you’ll build the treatment and fee pages yourself.

Model treatments with fees and visits

Patients compare dental treatments on cost, number of visits and recovery. Make those required fields so every treatment page answers them.

// src/content.config.ts
import { defineCollection, reference } from 'astro:content';
import { glob } from 'astro/loaders';
import { z } from 'astro/zod';

const team = defineCollection({
  loader: glob({ pattern: '**/*.md', base: './src/content/team' }),
  schema: ({ image }) =>
    z.object({
      name: z.string(),
      role: z.enum(['Dentist', 'Hygienist', 'Orthodontist', 'Dental therapist']),
      qualifications: z.string(),
      registration: z.string(),
      photo: image(),
      photoAlt: z.string(),
    }),
});

const treatments = defineCollection({
  loader: glob({ pattern: '**/*.md', base: './src/content/treatments' }),
  schema: z.object({
    title: z.string(),
    summary: z.string().max(180),
    group: z.enum(['General', 'Cosmetic', 'Orthodontics', 'Restorative', 'Emergency']),
    feeFrom: z.number(),
    visits: z.string(),
    chairTime: z.string(),
    recovery: z.string().optional(),
    paymentPlan: z.boolean().default(false),
    providers: z.array(reference('team')),
    reviewedBy: reference('team'),
    reviewedOn: z.coerce.date(),
  }),
});

export const collections = { team, treatments };
---
# src/content/treatments/dental-implants.md
title: "Dental implants"
summary: "A permanent replacement for a missing tooth, fixed into the jaw."
group: "Restorative"
feeFrom: 2400
visits: "3 to 4 visits over 3 to 6 months"
chairTime: "60 to 90 minutes for placement"
recovery: "Mild soreness for 2 to 3 days"
paymentPlan: true
providers: ["dr-maya-chen"]
reviewedBy: "dr-maya-chen"
reviewedOn: 2026-10-15
---

## Is an implant right for you?

Implants suit adults with healthy gums and enough bone to support the post.

The reviewedBy field records which clinician checked the page. Health content is judged on accuracy, and a visible review line is honest and reassuring. The content collections guide covers reference() and schemas in more depth.

Treatment pages that answer cost and time first

---
// src/pages/treatments/[id].astro
import { getCollection, getEntries, getEntry, render } from 'astro:content';
import BaseLayout from '../../layouts/BaseLayout.astro';
import BookButton from '../../components/BookButton.astro';

export async function getStaticPaths() {
  const treatments = await getCollection('treatments');
  return treatments.map((t) => ({ params: { id: t.id }, props: { treatment: t } }));
}

const { treatment } = Astro.props;
const d = treatment.data;
const { Content } = await render(treatment);
const providers = await getEntries(d.providers);
const reviewer = await getEntry(d.reviewedBy);
---
<BaseLayout title={`${d.title} | Fees and what to expect`} description={d.summary}>
  <h1>{d.title}</h1>
  <dl class="facts">
    <div><dt>From</dt><dd>${d.feeFrom.toLocaleString('en-US')}</dd></div>
    <div><dt>Visits</dt><dd>{d.visits}</dd></div>
    <div><dt>Chair time</dt><dd>{d.chairTime}</dd></div>
    {d.recovery && <div><dt>Recovery</dt><dd>{d.recovery}</dd></div>}
    {d.paymentPlan && <div><dt>Payment plan</dt><dd>Available</dd></div>}
  </dl>
  <Content />
  <h2>Who provides this treatment</h2>
  <ul>{providers.map((p) => <li><a href={`/team/${p.id}/`}>{p.data.name}, {p.data.qualifications}</a></li>)}</ul>
  <p class="review">Reviewed by {reviewer.data.name} on {d.reviewedOn.toLocaleDateString('en-US', { dateStyle: 'long' })}.</p>
  <BookButton />
</BaseLayout>

Treatment pages are your strongest search pages. People search “dental implants cost” or “Invisalign near me”, and a page with the treatment name, a fee and a location answers that directly. It’s also the kind of concise fact block an AI assistant can quote.

The emergency dentist page

Emergency searches are urgent and local. A strong emergency page says, in the first lines, whether you see emergencies today, how to get a slot, and what to do out of hours.

---
// src/pages/emergency-dentist.astro
import BaseLayout from '../layouts/BaseLayout.astro';
const phone = '+1-555-010-3030';
---
<BaseLayout title="Emergency dentist" description="Same-day emergency appointments for toothache, broken teeth and swelling. Call us from 8am.">
  <h1>Emergency dental appointments</h1>
  <p class="lead">We keep same-day emergency slots Monday to Saturday. Call <a href={`tel:${phone}`}>(555) 010-3030</a> from 8am.</p>
  <h2>What counts as a dental emergency</h2>
  <ul>
    <li>Severe toothache that painkillers don't control</li>
    <li>A knocked-out or broken tooth</li>
    <li>Swelling in the face or jaw</li>
    <li>Bleeding that won't stop after an extraction</li>
  </ul>
  <h2>Out of hours</h2>
  <p>If we're closed, call your local urgent dental service. For swelling that affects breathing or swallowing, go to the emergency department.</p>
</BaseLayout>

Have a dentist approve the wording on this page, especially the advice about when to go to hospital.

Fees, insurance and payment plans

A clear fee page reduces phone calls and builds trust. Keep fees in one data file so the fee page and each treatment page always agree.

---
// src/pages/fees.astro
import { getCollection } from 'astro:content';
import BaseLayout from '../layouts/BaseLayout.astro';

const treatments = await getCollection('treatments');
const groups = Object.groupBy(treatments, (t) => t.data.group);
---
<BaseLayout title="Fees and payment plans" description="Dental fees for checkups, hygiene, fillings, implants and cosmetic treatments, plus payment plans.">
  <h1>Fees and payment plans</h1>
  {Object.entries(groups).map(([group, items]) => (
    <section>
      <h2>{group}</h2>
      <table>
        <thead><tr><th>Treatment</th><th>From</th><th>Payment plan</th></tr></thead>
        <tbody>
          {items.map((t) => (
            <tr>
              <td><a href={`/treatments/${t.id}/`}>{t.data.title}</a></td>
              <td>${t.data.feeFrom.toLocaleString('en-US')}</td>
              <td>{t.data.paymentPlan ? 'Yes' : 'No'}</td>
            </tr>
          ))}
        </tbody>
      </table>
    </section>
  ))}
  <h2>Insurance</h2>
  <p>List the insurance plans you accept and explain how claims work at your practice.</p>
</BaseLayout>

Because the fee table is generated from treatment frontmatter, a fee change is one edit that updates both pages.

Booking and new patient forms

Your practice management software almost certainly offers online booking and digital patient forms built for health data. Link to them rather than collecting medical history through a generic form backend.

---
// src/components/BookButton.astro
const bookingUrl = import.meta.env.PUBLIC_BOOKING_URL ?? '/contact/';
---
<div class="book">
  <a class="btn" href={bookingUrl} rel="noopener">Book online</a>
  <a href="tel:+15550103030">Call (555) 010-3030</a>
</div>

If you keep a general contact form, add a line telling people not to include medical details. The environment variables guide explains how PUBLIC_ variables work, so switching booking providers is a one-line change.

Dentist schema and local SEO

Add Dentist structured data to the home and contact pages.

---
// src/components/DentistSchema.astro
const schema = {
  '@context': 'https://schema.org',
  '@type': 'Dentist',
  name: 'Harbor Street Dental',
  url: Astro.site?.href,
  telephone: '+1-555-010-3030',
  address: {
    '@type': 'PostalAddress',
    streetAddress: '310 Harbor Street',
    addressLocality: 'San Diego',
    addressRegion: 'CA',
    postalCode: '92101',
    addressCountry: 'US',
  },
  openingHoursSpecification: [
    { '@type': 'OpeningHoursSpecification', dayOfWeek: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'], opens: '08:00', closes: '18:00' },
    { '@type': 'OpeningHoursSpecification', dayOfWeek: 'Saturday', opens: '09:00', closes: '14:00' },
  ],
  isAcceptingNewPatients: true,
};
---
<script type="application/ld+json" set:html={JSON.stringify(schema)} />

Check properties against schema.org’s Dentist type. For reviews, link to your Google Business Profile instead of copying reviews onto the site. The JSON-LD guide shows how to build schema from collections.

Accessibility, nervous patients and deployment

Many dental patients are anxious, older or reading on a small screen. Use body text of at least 16px, strong contrast, real text for hours and phone numbers, and alt text on every photo. A nervous patients page that explains sedation options and how you pace appointments can do more for bookings than any design detail.

Run npm run build and deploy dist/ to Cloudflare Pages, Netlify or Vercel; our static deployment docs walk through each host. Review fees and treatment pages at least once a year, and update holiday hours ahead of time. The official Astro content collections docs cover everything the treatment model uses.

FAQ

Is Astro good for a dentist website?

Yes. A dental site is mostly treatments, fees, team profiles and contact details, which Astro builds into fast static pages. There’s no database or admin login to secure, and online booking can stay with your practice management software.

What pages should a dental practice website have?

A home page, one page per treatment, an emergency dentist page, a new patients page, fees and payment plans, team profiles, a nervous patients page and a contact page with address, parking and opening hours.

Should dentists show prices on their website?

Showing fees or “from” fees for common treatments helps patients compare and reduces phone enquiries. Explain what can change the final cost, such as the number of visits or extra imaging.

How do I add online booking to a dentist website built with Astro?

Link the Book button to the online booking page from your practice management software, or embed its widget on a booking page. Patient details stay in software designed for health data, and your Astro site stays static.

What schema markup should a dentist website use?

Use the schema.org Dentist type with name, address, telephone and opening hours, and isAcceptingNewPatients if it applies. Keep the details identical to your Google Business Profile.