Skip to content
Sign inJoin waitlist

Editing the site — Lookis HTML

Every page of Lookis is a plain HTML file that you edit in a code editor. This guide shows where everything is, and how to add a project, a service or a page.

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 form and the 404 page), run a small local server from the folder:

Terminal window
npx serve .

npm start runs the same command. Then edit the files in a code editor and reload the browser to see the change.

index.html, about.html, contact.html
portfolio.html the Portfolio page (the filter and every project as a card)
services.html the Services page (every service as a card, the Questions FAQ)
404.html shown for addresses that don't exist
style-guide.html every component with its name (noindex; delete it if you don't want it)
portfolio/*.html one page per project
services/*.html one page per service
assets/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 endpoint
assets/images/ photos, portraits, the logo as a file
assets/fonts/ Inter
icon-light.png, icon-dark.png, apple-icon.png, opengraph-image.png
sitemap.xml, robots.txt
src/css/style.css the stylesheet's source: colours, breakpoints, font

Pages 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. A heading looks like this:

<h2 class="text-[28px] md:text-[38px] lg:text-[48px] leading-[1.1] font-normal [font-variation-settings:'opsz'_14]">Every project starts with trust and a shared vision.</h2>

Change the words, leave the class. Ampersands are written &amp; (Weddings &amp; Elopements), and the demo uses the typographic ’ (Let’s Connect); typing ' works too, & should stay &amp;. When you search for a sentence, search for a part without them.

Button labels and the menu links are written three times: once to size the element (class="opacity-0", the copy screen readers read) and twice in the copy that rolls up on hover (aria-hidden="true"). Change all three:

<span class="opacity-0">Book a session</span><span aria-hidden="true" …><span>Book a session</span><span>Book a session</span></span>

The header’s links, the social links (Instagram, Facebook, Pinterest, Twitter) and the filter tabs of Portfolio work the same way.

  • The name. “Daniel Mercer” is the page’s <h1>, written once for screen readers and search engines (<h1 class="sr-only">Daniel Mercer</h1>) and then in the ticker that runs across the top of the hero: the name and a dash, twice in each of three copies (data-ticker-copy="0", "1" and "2"), so that it loops without a gap. Change the <h1> and every copy.

  • The introduction (“Hello, I’m Daniel Mercer…”) appears word by word when the page loads. Each word is its own <span> inside the paragraph marked data-word-appear:

    <p class="…" data-word-appear>
    <span><span class="inline-block" style="opacity: 0.001; filter: blur(10px); transform: translateY(10px)" data-word>Hello,</span> </span
    ><span><span class="inline-block" style="opacity: 0.001; filter: blur(10px); transform: translateY(10px)" data-word>I’m</span> </span
    >…
    </p>

    To change it, write one pair of spans per word (copy a pair, change the word). The script staggers the words by itself, 0.05 seconds apart. To drop the effect, replace the spans with the plain text and remove data-word-appear: <p class="…">Hello, I’m …</p>.

  • The buttons: “Book a session” (your booking page) and “See my portfolio”; the social links sit at the bottom right.

The header, the footer, your links and your contact details are copied into every page. Change them once for all files with your editor’s Find in Files / Replace in Files (VS Code: Ctrl/Cmd + Shift + H):

Replace With
https://lookis-html-templategum.vercel.app Your domain, e.g. https://www.yourname.com (canonical links, share cards, sitemap.xml, robots.txt)
hello@example.com Your e-mail: the footer of every page (the mailto: link and its text)
(555) 123-4567 and tel:5551234567 Your phone, as shown and as dialled (the footer)
https://instagram.com, https://facebook.com, https://pinterest.com, https://x.com Your profiles: the footer’s Social column, the Home hero, About and Contact; Instagram also links the photos of the “See what I do” gallery and its button. Change the link texts (Twitter, …) too
@danielmercer on Instagram Your handle, on the gallery’s button
https://cal.com/ Your booking page (Cal.com, Calendly…): “Book a session” on Home, “Schedule a call” in the footer and on every service page
Asheville, (NC) and America/New_York Your place and time zone (the clock)
Available for bookings, collaborations, and meaningful conversations. Based in Asheville, NC — working worldwide. The line under “Let’s Connect” in the footer
Daniel Mercer Photography. All rights reserved. Your footer note; keep the <span data-current-year> before it for the year
aria-label="Lookis" Your name: the name of the logo link for screen readers
| Lookis in <title> and share tags | Your Name (the Home title, Lookis - Photography &amp; Personal Portfolio, has no suffix)
content="Lookis" Your site’s name (application-name and og:site_name)
Lookis — photography and personal portfolio website template A description of your share image (og:image:alt, twitter:image:alt)

Include the .html, .xml and .txt files. Review each change before replacing all: “Daniel” and “Asheville” also appear in the copy of every page, the testimonials’ quotes, the projects and the FAQ, which you may want to rewrite rather than replace. The year in the footer updates itself (data-current-year).

On desktops the header shows a place and the current time there: <span>Asheville, (NC)</span> and <time data-clock="America/New_York">. The script writes the time (8:53 PM) and keeps it current; the zone is an IANA time zone name (Europe/London, Asia/Jakarta). Both are written twice in every page: in the header’s bar and at the bottom of the phone menu. To drop the clock, delete the <p> that holds them in both places.

Some sections are copied into several pages. Change them in every copy (find and replace in files works for text):

Section Pages
Header and footer (with the footer’s photo, hero.jpg) Every page
“See what I do” (the title, “Contact me”, five gallery photos and the Instagram button) index.html, about.html, portfolio.html, services.html, every page in services/; contact.html has the gallery only
“Testimonials” (the photo band and the slideshow) index.html, services.html, every page in services/
The project cards index.html (the newest six), portfolio.html (all sixteen), “Related Projects” on every page in portfolio/
The service rows with a photo index.html (“My Services”)
The service cards (name, summary, price) services.html (all four), “Other Services” on every page in services/ (the three others)
The four numbers (“87+ Clients trusted my vision”, …) index.html (“My numbers”, with a line under each), about.html (without)

The slideshow shows one quote at a time and moves on every four seconds; the arrows step back and on. Each quote is a <li> in the <ul data-slider-track>, with the quote, the client’s photo, name and session. The list holds three copies of the four testimonials: the slideshow moves through the middle copy and jumps back unseen, so that it loops forever. The first and the last copy carry aria-hidden="true" on each <li>.

  • To change a testimonial, change it in all three copies (find and replace in files does every page at once).
  • To add or remove one, add or remove it in all three copies, and set data-slider on the box around the track to the number of testimonials (data-slider="4" in the demo).

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 2400 × 1600).

To use a new file instead, change the src: <img src="assets/images/my-photo.jpg" …>. In pages inside a folder (portfolio/…, services/…), 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 change shape between phone, tablet and desktop, so keep the subject away from the edges. About, Portfolio’s project pages, Services, a service and Contact share one layout: a large photo on the left, 85 % of the window tall and half as wide on desktops (and staying in view as you scroll), 4 : 5 on tablets and 370 : 463 on phones. Use photos at least as large as the demo’s:

Photos Files Demo size
The Home hero (it fills the rest of the window), the footer’s background on every page, the portrait on Contact (200 px square) hero.jpg 2400 × 1600
Home “About me”, the About page photo about-1.jpg 1200 × 1500 (4 : 5)
Home “About me”, the right column about-2.jpg 1200 × 1500
The two photos side by side (Home “About me”, About “My little story”) about-3.jpg, about-4.jpg 1440 × 952 (shown at 1.51 : 1) and 1000 × 667
The portrait beside “About me” (About) about-avatar.png 400 × 400 (shown 200 px square)
The photo among the awards (About) about-story.jpg 1200 × 1600 (3 : 4)
“My numbers” (Home), the Services page photo facts.jpg 1200 × 2133 (tall: 502 px wide on desktops; 400 / 350 px tall, full width, below)
A project’s photo (its card and its page) portfolio-<slug>.jpg 1440 × 1440 (the card is 565 : 600)
A project’s gallery (five photos) portfolio-<slug>-1.jpg to -5.jpg 1440 × 2160 (shown at 0.74 : 1)
A service’s photo (its row on Home, its page) service-<slug>.jpg 1200 × 800 (the row: square on phones, 770 : 359 on tablets, 200 × 145 on desktops)
The testimonials band testimonials.jpg 2400 × 1600 (750 / 600 / 650 px tall)
The testimonials’ clients client-elena.jpg, client-mia-jordan.jpg, client-liam.jpg, client-sarah.jpg 200 × 200 (shown 80 px square, 40 on phones)
“See what I do” gallery gallery-1.jpg to -5.jpg 600 px wide (shown square)
The Contact page photo contact.jpg 1200 × 800
The 404 photo not-found.jpg 1920 × 1280 (it fills the window, cropped)

Several files are used in more than one place: hero.jpg (the Home hero, every footer, the Contact portrait), about-1.jpg, about-3.jpg, about-4.jpg, facts.jpg, a project’s photo, a service’s photo and the gallery. 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 every photo that carries meaning (the demo describes each one); leave it empty (alt="") for decorative ones, like the footer’s background.

Pages link to each other as about.html, portfolio.html, portfolio/<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.

Links to other sites (the social links, the booking links, the Instagram gallery, the awards) open in a new tab (target="_blank"). mailto: and tel: links open the visitor’s mail app or phone.

Home (“My numbers”) and About show four numbers (“87+ Clients trusted my vision”, “130+ Projects completed”, “35+ Cities photographed”, “12+ Countries traveled”); Home adds a line under each. They are plain text: they don’t count up. Change the number, the label and the line in place, in both index.html and about.html.

Beside the photo: “About me” with the portrait, the title and the social links; “My little story” (a title, two photos, three paragraphs and “See my service”), the four numbers; and “Awards & Recognitions”: four award cards (year, title, who gave it), each a link, with a photo after the third. The demo’s awards and their links (https://www.awwwards.com/) are samples: write your own, or delete a card’s <li>.

Services lists every service as a card (name, summary, price, arrow) beside the photo, then “Questions”: six questions, each a row that opens and closes on its own; all are closed when the page loads. Each row’s button names its answer:

<button type="button" id="services-faq-0-q" aria-expanded="false" aria-controls="services-faq-0-a" data-faq-toggle …>How do I book a session with you?</button>
…
<div id="services-faq-0-a" role="region" aria-labelledby="services-faq-0-q" hidden data-faq-answer>

To add a question, copy an <li> of the list, give its button’s id and aria-controls and its answer’s id and aria-labelledby a new number (services-faq-6-q, services-faq-6-a), and write its number (07) in the first <span> of the row: the numbers are text.

Portfolio shows the tabs All, Portrait Sessions, Weddings & Elopements, Lifestyle & Editorial and Travel & Documentary, then the project cards, four at a time; more appear each time the spinner under the list comes within about 500 px of the screen. A tab shows the projects of its service, again four at a time. Every card is in the HTML, so search engines find them all, and visitors without JavaScript see them all.

<button type="button" aria-pressed="false" data-portfolio-tab="portrait-sessions" …>
…
<li data-portfolio-item data-service="portrait-sessions" class>
<li data-portfolio-item data-service="portrait-sessions" data-later="true" class="hidden">
  • A tab’s data-portfolio-tab is a service’s slug, and a card’s data-service says which tab shows it: the two must match. The first tab, data-portfolio-tab="all", shows every card.
  • From the fifth card on, cards carry data-later="true" class="hidden" (the first four class). The list keeps the order of the HTML: the demo lists the newest project first.
  • data-page-size="4" on the <div data-portfolio> around the tabs and the list sets how many show at a time.
  1. The page. Copy an existing one, e.g. portfolio/downtown-vows.html → portfolio/autumn-portraits.html. Use lower-case words joined by - for the file name; it becomes the address. Edit:

    • the photo, the title (<h1>) and the summary under it;
    • “Date” (the <time> element’s datetime and its text, Apr 14, 2024) and “Service” (the service’s name, plain text);
    • “Overview”: paragraphs <p class="mt-5 first:mt-0">, with <br /> for a line break and <em> for italics;
    • “Project Gallery”: the five photos (add or remove an <li> for more or fewer);
    • “Related Projects”: up to three other projects of the same service, newest first; leave the section out when there are none;
    • the <head>: title, description, canonical, og:url and the og: and twitter: titles and descriptions.
  2. Portfolio. Copy a card (<li data-portfolio-item …>…</li>) in portfolio.html, paste it where the project belongs (at the top for the newest), and edit its link, photo, alt, title, summary and data-service. Keep class on the first four cards and data-later="true" class="hidden" on every card after them (the filter).

  3. Home, if it should be among the six cards of “Selected Projects” (they are the newest six: drop the last one).

  4. Related Projects on the other projects of the same service, where it should appear.

  5. The sitemap. Add a line to sitemap.xml, with the project’s date:

    <url><loc>https://yourdomain.com/portfolio/autumn-portraits.html</loc><lastmod>2026-10-13</lastmod></url>
  1. The page. Copy one in services/, e.g. services/portrait-sessions.html → services/family-sessions.html. Edit:
    • the photo, the label (the service’s name) and the title (its summary, <h1>);
    • the price (“Price :” $350 – $600);
    • the text: paragraphs like a project’s; the demo’s first one is in italics (<em>);
    • “Perfect for” (up to four lines) and “What’s Included” (up to five): numbered rows whose numbers (01, 02) are text, so renumber them when you add or remove one;
    • “Other Services”: the cards of the other services;
    • the <head>.
  2. Services. Copy a card in services.html and edit its link, name, summary and price.
  3. Home. Copy a row of “My Services” (photo, name, summary, price) in index.html.
  4. Other Services on every other service page: add its card.
  5. Portfolio. If projects will show under it, add a tab: copy a <button … data-portfolio-tab="…"> in portfolio.html, set its data-portfolio-tab to the new slug and write its label three times (text). Give the projects’ cards that data-service.
  6. The sitemap. Add its line to sitemap.xml.

To remove a project or a service, do the reverse: delete the page, its cards and rows, any link to it and its line in sitemap.xml. Search the folder for the file name to catch any link left behind.

  1. Copy a page close to what you want, e.g. about.html → journal.html.
  2. 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 from style-guide.html) and paste between <main> and </main>.
  3. Update the <head> (title, description, canonical, og:url, and the og: and twitter: titles and descriptions).
  4. If you copied About, Portfolio, Services or Contact, the copy marks that page as the current one: remove aria-current="page" from its two links (the header has a menu for tablets and desktops and one for phones).
  5. Link to it: in the two menus, copy the <li> of a neighbouring link and change its href and its text (written three times); or add it to the footer’s Quick Links. The header and the footer are the same in every page of a folder apart from those aria-current marks, so once one page is done, copy them into the others (pages in portfolio/ and services/ write ../ before each link, and 404.html writes its links from the root, /journal.html). Add the page to sitemap.xml.

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 (“Learn about me” to About, “See my service” to Services, “Contact me” to Contact, “See my portfolio” and “View my portfolio” to Portfolio).

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; its sample forms never send anything.