Make Covena Yours In 30 Minutes
Skill level: Beginner · Time: 30 minutes · You need: the site running with npm run dev (Installation)
This page walks through the ten changes almost every firm’s site needs, in order. Each step names the file and the lines to edit, and links to the page with the details. Save the file and the browser shows the change, config.toml included.
The steps show the English files. Each language has its own copy (english, french, arabic folders and en.json, fr.json, ar.json), so repeat a change in the other languages, or remove the languages you don’t need first (Internationalization).
-
Name your site and set its address
Open
src/config/config.tomland edit the[site]block:[site]title = "Your Firm"description = "Solicitors in Leeds for family, property, and employment matters."tagline = "Solicitors in Leeds"baseUrl = "https://www.your-domain.com"logoText = "Your Firm"taglineis added to every page title in your default language (<page> - <tagline>). Other languages usecommon.taglineinsrc/i18n/<lang>.json, so change it there too. The site description in each language comes fromcommon.siteDescriptionin the same files.baseUrlis your live address. It ships empty, andnpm run buildprints a[site]warning until you set it. Canonical links, the sitemap, RSS feeds,llms.txt, and social previews all use it.logoTextis the name next to the logo mark in the header and footers.
Details: Site Identity & Logo and Config Reference.
-
Add your firm’s details
In the same file, set the firm name search engines see, and your main phone and email:
[seo]author = "Your Firm Solicitors"[settings.contactInfo]phone = "[+44 113 496 0000](tel:+441134960000)"Each value is a Markdown link: the text in square brackets is what visitors see, and the part in brackets is the link. The header chips, the footers, and the call links in the heroes use them.
Then open
src/i18n/en.jsonand change the main address undercontactInfo. Details: Firm Info. -
Replace the sample offices
Each office is one file in
src/content/offices/english/:london.md,manchester.md, andbirmingham.md. The file name is the page address (/offices/london/). Changetitle,city,address,phoneandphoneUrl,email,hours, andmapUrlin each, and the attorneys and practice areas listed under it, rename or delete the files you don’t need, and do the same in thefrenchandarabicfolders. The office cities in thebarheader (Home 2) and theofficesfooter (Home 3) come from these files. Details: Firm Info. -
Fill in your regulator
Open
src/content/pages/english/regulatory-information.mdand replace every value in square brackets, such as[Regulator],[000000], and[Regulator website], with your regulator, your number, and a link to its rules. The French and Arabic files have their own bracketed placeholders, so search each one for[. -
Set your brand colors
Open
src/styles/theme.css. The brand colors are at the top:--color-navy: #14295E;--color-navy-hover: #1E3A7E;--color-bronze: #B4864F;--color-bronze-deep: #85602F;Change the hex values and every component follows. Keep enough contrast between text and its background. Details: Colors & Fonts.
-
Add your logo
The logo is a “C” mark drawn in
src/layouts/components/global/Logo.astro, followed bylogoText. To keep the layout and change only the shape, replace the mark’s SVG path in that file. To use your own logo file instead, follow Site Identity & Logo. Then make the favicons from your mark:Terminal window npm run generate-favicons -
Connect the forms
While
contactFormActionis empty, every form runs in demo mode: it checks the fields, then tells the visitor nothing was sent. Point it at a form service you control:[settings]contactFormAction = "https://formspree.io/f/your-form-id"contactFormProvider = "formspree"This covers the contact, consultation, callback, and job application forms. The newsletter forms use Mailchimp and have their own
formAction. Details: Forms. -
Replace the sample lawyers, results, and reviews
The attorneys, results, reviews, the 4.9 rating, the awards, the press mentions, and the fees are made up. Replace them or delete them:
- Attorneys: one file each in
src/content/attorneys/english/(Collections) - Results and reviews:
src/content/results/english/andsrc/content/reviews/english/-index.md(Results & Reviews) - Fees:
src/content/fees/english/-index.md(Fees)
Don’t publish a review, rating, or award you can’t back up, and keep the disclaimer the results show.
- Attorneys: one file each in
-
Replace the photos
The demo photos are in
src/assets/images/covena/, grouped in folders, and content files point at them as/images/covena/<folder>/<file>. Put your photo in the same folder, change the path in the content file, and update theimageAltnext to it. Keep the same aspect ratio as the photo you replace, or the crop changes. Details: Icons & Images. -
Check, build, and deploy
Stop the dev server and run:
Terminal window npm run astro-checknpm run buildFix anything
astro-checkreports. If the build prints a yellow[site]line,baseUrlis still empty (step 1). Then follow the Deployment guide, which has the full launch checklist.
What Next?
- Pick your homepage: Covena has three (
/,/home-corporate/,/home-family/). See Homepages. - Only need English? See Internationalization.
- Point the header button and menus at your pages: Header and Menus.
- Decide where the quick exit button shows and where it goes: Quick Exit.
- Replace the demo content page by page: Pages lists every page and its file.
- Let an AI assistant do the repetitive work: Prompt Library.