# Electrician website

A free electrician website template built with Eleventy (11ty) and Nunjucks that publishes as a static site, for electricians and electrical contractors. It lists services with from prices, a full example price list, the areas you cover with a postcode checker, a quote form, an emergency line, sample reviews and accreditation placeholders, with every business detail in YAML.

- Framework: Eleventy (JavaScript)
- Category: Websites / Trades and home
- Creates: a static site
- Plan: Free
- Price: Free
- Author: Light Cloud
- Page: https://templates.light-cloud.com/websites/trades-and-home/electrician-website-template
- Updated: 2026-11-21

## Features

- Services with from prices, one YAML file each: rewires, consumer units, landlord EICRs, EV chargers, fault finding and emergency call-outs
- An example price list in grouped tables with a VAT note and the date the prices were checked
- Areas covered by zone with response times, postcode districts and a postcode checker
- A quote form that posts to any form endpoint, with photo upload when it accepts files, or opens the visitor's email app
- NICEIC or NAPIT accreditation and insurance shown as marked placeholders until you add your numbers, and sample reviews labelled
- Electrician JSON-LD with areaServed, opening hours and an OfferCatalog, plus FAQPage, BreadcrumbList, sitemap.xml and /llms.txt
- A 1200x630 Open Graph card per page with title, price and phone, drawn at build time with satori and sharp
- WCAG 2.2 AA in light and dark mode, checked with axe-core, with JavaScript only on the quote and areas pages

## What you need

- Free plan: it builds to a static site, which the Free plan hosts with no limit on sites
- To run it locally: Node.js 22.12 or later and npm
- Optional: QUOTE_FORM_ENDPOINT, a Formspree or similar URL, and QUOTE_FORM_FILES=true if it accepts photos; without it the form opens the visitor's email app
- Optional: SITE_URL, your public address for canonical links, the sitemap and sharing images

## About

Every business detail lives in content/: business.yaml for the name, phone, hours, emergency line and accreditations, one YAML file per service, prices.yaml for the price list, areas.yaml for zones and postcode districts, and YAML for reviews and the FAQ. Eleventy builds every page to plain HTML in _site/. The demo prices are realistic estimates, not quotes, and the EICR and Part P wording follows the rules in England, so check it if you work in Wales, Scotland or Northern Ireland. The postcode checker matches the outward code only, accreditation numbers are placeholders and the reviews are labelled samples until you replace them. There is no linter: npm run check type-checks the JavaScript and the tests cover the rest.

## Questions

### How do I make a website for my electrical business?

Deploy this template, then edit the YAML files in content/: your name, phone number, hours, services, prices and the postcodes you cover. Each file has comments on every field, and the site rebuilds from them on every push.

### How do I show my NICEIC or NAPIT registration on my website?

Put the scheme name and your registration number in accreditations: in content/business.yaml, with a link to the scheme's checker. Until the number is filled in, the site shows a marked placeholder and leaves it out of the structured data, so it never claims a registration you have not added.

### How does the electrician quote form send me requests?

With nothing set, it opens the customer's email app with the request written out and addressed to the email in content/business.yaml. Put a Formspree, Basin or similar URL in QUOTE_FORM_ENDPOINT to receive requests directly, and set QUOTE_FORM_FILES=true if it accepts photos.

### Can I use this template for a plumber, roofer or other trade?

Yes. Change the services, prices, accreditations, wording and photos, and change the JSON-LD type in src/lib/schema.js from Electrician to Plumber, RoofingContractor or HomeAndConstructionBusiness.

### Can I host this electrician website without Light Cloud?

Yes. Run npm run build and upload _site/ to any static host; every page is a real HTML file, so no SPA fallback is needed. Set the environment variables in the host's build settings.
