Editing the site — KorDent HTML
Every page of KorDent is a plain HTML file that you edit in a code editor. This guide shows where everything is, and how to add a service, a post or a page.
Open it
Section titled “Open it”Double-click index.html: the site opens in your browser and every link works, straight from the folder. To see it
exactly as a host serves it (and to test the forms and the 404 page), run a small local server from the folder:
npx serve .npm start runs the same command. Then edit the files in a code editor and reload the browser to see the change.
What is where
Section titled “What is where”index.html, about.html, blog.html, contact.html, book.htmlservice.html the Services page (every service, with the department tabs and the search)404.html shown for addresses that don't existstyle-guide.html every component with its name (noindex; delete it if you don't want it)service/*.html one page per serviceblog/*.html one page per postlegal/*.html privacy-policy.html, terms-of-use.html, accessibility-statement.htmlassets/css/style.css the stylesheet (generated — see design.md)assets/js/main.js the site's scripts (you rarely need to touch it)assets/js/config.js your settings: form endpointassets/images/ photos, portraits, the logo as a fileassets/videos/cta.mp4 the video of the closing call to actionassets/fonts/ Intericon.svg, apple-icon.png, opengraph-image.pngsitemap.xml, robots.txtsrc/css/style.css the stylesheet's source: colours, breakpoints, the fontPages and sections describes every page, section by section.
Find the words on the page and change them in the HTML. Keep the tags and classes around them, because they carry the
layout. Ampersands are written & (Education & Degrees), and the demo uses the typographic ’; typing '
works too. When you search for a sentence, search for a part without them.
Button labels are written three times: once to size the button (the copy screen readers read) and twice in the copies
that flip on hover (aria-hidden="true"). Change all three:
<span class="…">Book Appointment</span><span aria-hidden="true" class="…">Book Appointment</span><span aria-hidden="true" class="…">Book Appointment</span>A button that shrinks to its icon on tablets carries its label as aria-label instead: change that too.
Titles that rise word by word
Section titled “Titles that rise word by word”The page titles rise word by word out of a light blur as the page loads. Each is written twice: once whole, for screen
readers and search engines (class="sr-only"), and once split into one <span data-word> per word for the effect
(aria-hidden="true"):
<h1 class="…" data-appear="words"> <span class="sr-only">About Our Clinic.</span ><span aria-hidden="true" ><span class="…" data-word style="opacity: 0.001; filter: blur(7px); transform: translateY(10px)">About</span> <span class="…" data-word style="…">Our</span> <span class="…" data-word style="…">Clinic.</span></span ></h1>To change one, write the new text in the sr-only span, then in the split copy: one span per word (copy a span, change
the word). To drop the effect, replace both copies with the plain text and remove data-appear="words".
Other blocks rise as the page loads (data-appear="load") or as they scroll into view (data-appear="scroll"), with
data-y (the distance), sometimes data-delay, and a starting style="opacity: 0.001; transform: translateY(…px)".
Remove the attributes and the style to show a block at once (Making it look like your brand).
Text that repeats on every page
Section titled “Text that repeats on every page”The header, the footer, your links and your contact details are copied into many pages. Change them once for all files
with your editor’s Find in Files / Replace in Files (VS Code: Ctrl/Cmd + Shift + H). Include the .html, .xml
and .txt files:
| Replace | With |
|---|---|
https://kordent-html-templategum.vercel.app |
Your domain, e.g. https://www.yourclinic.com (canonical links, share cards, sitemap.xml, robots.txt) |
| The demo’s e-mail address | Your e-mail: the Contact page and the About photo (the mailto: link and its text) |
Each phone number, as shown (+1 (415) 555-0145) and as dialled (tel:+14155550145) |
Yours. The demo has four numbers: the main line and the appointments line (also the WhatsApp link, https://wa.me/…) on Contact, the “Call Now” number of the header, the call to action and the Services page, and the emergency number of Contact and “Need Urgent Help?”. Search for “555” to find them all. |
| The demo’s address | Your address: Contact (with the map and “Get Direction”, whose addresses are written URL-encoded, %20 for a space) and the About photo |
https://facebook.com, https://instagram.com, https://x.com |
Your profiles (the footer’s social buttons) |
| The line about the clinic in the footer, the copyright text and the disclaimer | Yours; keep the <span data-current-year> in the copyright, which writes the current year |
aria-label="KorDent home" |
Your clinic’s name: the name of the logo links for screen readers |
| KorDent in <title> and share tags |
| Your Clinic (the Home title and long titles have no suffix) |
content="KorDent" |
Your site’s name (application-name and og:site_name) |
The share image’s description in og:image:alt |
A description of your share image |
Review each change before replacing all: “KorDent” also appears in the copy of every page, the services’ texts, the posts and the legal texts, which you may want to rewrite rather than replace. The footer, the call to action and the booking panel write it “Kordent”.
Blocks that repeat on several pages
Section titled “Blocks that repeat on several pages”Some blocks are copied into several pages. Change them in every copy (find and replace in files works for text):
| Block | Pages |
|---|---|
| Header and footer (with the Dental Services column and the newsletter) | Every page |
| The services grid: a card per service, the department tabs, the search and the safety banner | index.html and service.html (all 14), every page in service/ (the 13 others) |
| The facts row (four tinted boxes) | index.html (under the hero), about.html (under the photo) |
| The dentists (tabs and cards; each dentist is written twice, as a card for tablets and desktops and as a row for phones) | index.html, about.html |
| The reviews with the review form | index.html, service.html |
| “Why Choose Us” (eight cards) | about.html, service.html, book.html |
| The booking form and the advantages panel | book.html, service.html; the form alone on every page in service/ |
| The closing call to action (title, buttons, promises, video) | index.html, about.html, blog.html, every page in blog/ |
| The review strip (four avatars, “476+”, the rating) | index.html (the hero), about.html (“About Us”) |
Images
Section titled “Images”assets/images/ holds every photo. The easiest change is to replace a file with yours under the same name: every
page that shows it updates. The download ships with grey placeholders that state the size each image was designed for
(for example 1920 × 1280).
To use a new file instead, change the src: <img src="assets/images/my-photo.jpg" …>. In pages inside a folder
(service/…, blog/…, legal/…), the path starts with ../: src="../assets/images/my-photo.jpg". In 404.html it
starts at the site’s root: src="/assets/images/…". The width and height on the <img> are the photo’s own size:
write your photo’s, so that the browser keeps its space while it loads.
Every photo sits in a fixed frame and is cropped to fill it (object-cover), so a photo of other proportions works, but
you lose the edges the frame cuts. Frames that follow the screen change shape between phone, tablet and desktop, so keep
the subject away from the edges. Use photos at least as large as the demo’s:
| Photos | Files | Demo size |
|---|---|---|
| The Home hero photo (also the video’s poster) | home-hero.jpg |
1000 × 1500, portrait |
| “About Our Clinic” (Home) | home-about.jpg, home-about-2.jpg, -3.jpg |
1300 × 1947 and two 700 × 467 |
| The Patient Guide (Services) | services-guide.jpg, -2.jpg, -3.jpg |
1300 × 1947 and two 700 × 467 |
| The wide photo of About | about-hero.jpg |
1920 × 1280 |
| “About Us” (About) | about-mission.jpg, about-mission-2.jpg |
800 × 1200 |
| A service’s photo (its page, the share image) | service-<slug>.jpg |
1920 × 1280 (3 : 2) |
| A post’s photo (the card, the cover, the share image) | post-<slug>.jpg |
1920 × 1280 (3 : 2) |
| A dentist’s portrait | doctor-<name>.jpg |
600 × 750 |
| An outcome’s four photos | outcome-<name>-1.jpg to -4.jpg |
600 × 400 |
| The reviewers’ photos | testimonial-<name>.jpg |
160 × 160 (shown round) |
| The four avatars of the review strips | review-avatar-1.jpg to -4.jpg |
120 × 120 (shown round, 42 px) |
Several files are used in more than one place: a service’s photo, a post’s photo (its cards, its page and its share
image), the dentists’ portraits (Home, About, the booking forms), home-hero.jpg (the hero and the video’s poster).
Replacing such a file changes every place; to show another photo in one of them, use a new file there.
Use .jpg for photos and keep files small; compress them with Squoosh or
TinyPNG. Write an alt text for images that carry meaning; leave it empty (alt="") for
decorative ones, like the review avatars.
The video
Section titled “The video”The closing call to action ends with a video that plays muted and in a loop while it is on the screen, and stays still for visitors who prefer reduced motion. It is only fetched when it scrolls into view:
<video data-in-view-video src="assets/videos/cta.mp4" poster="assets/images/home-hero.jpg" aria-label="…" muted loop playsinline preload="none" class="…">It is copied into every page with the call to action (in blog/, the paths start with ../). The demo’s clip is a
stock video: replace assets/videos/cta.mp4 with footage of your own clinic (keep the name, and every page picks it
up), a 16:9-ish clip of about 1280 × 720 kept to a few MB, because it loops. Change the poster and the aria-label
if you like. To remove the video, delete the <video …></video> element in every copy.
Pages link to each other as about.html, service.html, service/<slug>.html; from inside a folder, add ../
(../contact.html). Keep the .html: it’s what lets the site work from any host and from disk. 404.html is the
exception: its links start at the site’s root (/contact.html), because hosts show it at any address.
The service cards’ “Book a treatment” opens the booking form on the service’s own page (service/<slug>.html#booking).
The contents card of a service page links to its blocks (#about, #included, #treatment, #booking).
The Contact page
Section titled “The Contact page”The page holds the contact details (address, phone and WhatsApp, the appointment hotline, the e-mail), the opening
hours (each row with an Open or Closed tag), the emergency panel, the contact form (Forms) and a Google
Maps view. The map’s <iframe src> and the “Get Direction” link both carry the address, URL-encoded: replace both when
you change the address.
Adding a service
Section titled “Adding a service”A service is a page plus its card in the grids:
-
The page. Copy an existing one, e.g.
service/general-dentistry.html→service/gum-treatment.html. Use lower-case words joined by-for the file name; it becomes the address. Edit:- the title (both copies, titles that rise), the description under it and the wide photo;
- the three texts (About Services, Services Included, Treatment Process) and the contents card that links to them;
- the booking form: its one treatment card (title, summary, the radio’s
value, anddata-booking-service, the dentists who give it) and its dentists; - “Our Clinical Departments”: the cards of the other services (this service’s own card is left out);
- the
<head>: title, description, canonical,og:url, and the service’s photo asog:imageandtwitter:image.
-
The grids. Copy a card (
<li … data-category="…" data-title="…">) inindex.htmlandservice.html, and in the other service pages: setdata-categoryto the department’s tab (preventive-care,aesthetic-cosmetic,restorative-implants,specialist-pediatric) anddata-titleto the name in lower case (the search reads it). Onservice.html, raisedata-limiton the list (14) if the page should show every service. -
The booking forms. Add a treatment card to the form of
book.htmlandservice.html(Forms), and the treatment as an<option>of the review form’s “Treatment Type” inindex.htmlandservice.html. -
The footer, if it should be in the Dental Services column of every page (find and replace in files on a link of the column does it at once).
-
The sitemap. Add a line to
sitemap.xml:<url><loc>https://yourdomain.com/service/gum-treatment.html</loc></url>
Adding a post
Section titled “Adding a post”-
The page. Copy a page in
blog/→blog/my-new-post.html. Edit the title (both copies) and the excerpt, the category, the date (the<time>element’sdatetimeand its text,Mar 12, 2026), the read time, the photo, the text, “Other Post” (three other posts) and the<head>, with the post’s date inarticle:published_timeand its photo asog:imageandtwitter:image.The text is plain HTML: paragraphs
<p>, headings<h3>, bulleted lists<ul>whose items hold a paragraph,<strong>for bold, links, and tables. Copy a block of the kind you need from the page, with its classes; three demo posts carry a comparison table to copy from. -
The Blog. Add its card to
blog.html, at the top for a newest post. The list keeps the order of the HTML, not the dates. -
“Expert Dental Tips” on Home shows three posts, and “Other Post” under each post three more: change the cards there if the new post should appear.
-
The sitemap. Add a line with the post’s date:
<url><loc>https://yourdomain.com/blog/my-new-post.html</loc><lastmod>2026-11-02</lastmod></url>
To remove a service or a post, do the reverse: delete the page, its cards, any link to it and its line in
sitemap.xml. Search the folder for the file name to catch any link left behind.
Dentists, outcomes and reviews
Section titled “Dentists, outcomes and reviews”They have no pages of their own:
- A dentist shows on Home and About, as a tab and a card, and again as a row for phones: change both copies. In
the booking forms each dentist is a card with
data-booking-doctor="<slug>"; a treatment’sdata-booking-servicelists the slugs of its dentists, and the form shows only those once the treatment is chosen. - An outcome is a card on Home with four photos, and a row in the index on its left that links to it
(
data-outcome-link="outcome-01"and the card’sid). - A review is a card on Home and Services. A review sent through the review form is not published by itself: add its card by hand.
Legal pages
Section titled “Legal pages”legal/privacy-policy.html, legal/terms-of-use.html and legal/accessibility-statement.html hold a title, “Last
Updated : “ with its date (<time datetime="2026-07-14">Last Updated : Jul 14, 2026</time>) and the text, as paragraphs,
<h2>/<h3> headings and lists like a post. Their text is a sample: replace it with your own, written for what your site
and clinic do. The footer of every page links them; to add one, copy a page, add a link to the footer’s legal links in
every page and a line to sitemap.xml.
Adding a page
Section titled “Adding a page”- Copy a page close to what you want, e.g.
book.html→insurance.html. - Replace the sections inside
<main>with the ones you want. Every section in the template is a block you can copy from its page (or fromstyle-guide.html) and paste between<main>and</main>.<main>makes room for the header by itself, so the first section needs no extra space. - Update the
<head>(title, description, canonical,og:url, and theog:andtwitter:titles and descriptions). - If you copied a page of the menu, the copy marks that page as the current one: its links carry
aria-current="page"and the classes of the current link (bg-primary/10,text-primary). Copy a plain link’s markup instead (the header has a menu for tablets and desktops and one for phones). - Link to it: in the two menus, copy the
<li>of a neighbouring link and change itshref, its text anddata-menu-link; or add it to the footer’s Quick Links. Once one page is done, copy the header and footer into the others (pages inservice/,blog/andlegal/write../before each link, and404.htmlwrites its links from the root). Add the page tositemap.xml.
Removing a page
Section titled “Removing a page”Delete the file, remove its links from the menus and the footer of every page and its line from sitemap.xml. Search
the folder for the file name to catch any link left behind: buttons link to pages too (“Book Appointment” and “Book a
treatment” to Book and the service pages, “Our Services” and “More Treatments” to Services, “More About Us” to About).
The style guide
Section titled “The style guide”style-guide.html shows every component with its name, which is handy for copying a button or a card. It’s hidden from
search engines and linked from nowhere. Delete it before publishing if you don’t want it online.