# Footer

## Footer

**Files:** `src/config/config.toml`, `src/config/menu.<lang>.json`, `src/i18n/<lang>.json`, `src/config/social.json`, `src/pages/[...lang]/*.astro` · **Skill level:** Beginner

Covena has three footer layouts, one for each homepage. Every inner page uses the first one. All three end with the same bottom rows: the copyright, the legal links, a language menu, the **Ask AI** row, and the theme credit.

### The Three Layouts
**`marquee`** (Home 1 and every inner page): a rounded navy panel. A strip at the top scrolls the names of your practice areas, then come the logo and a short description, the link columns, the firm's address, phone and email, and the social icons.

<div class="border border-dark">
  ![Covena marquee footer with the scrolling practice areas strip](/images/covena/footer-marquee.jpg)
</div>

**`columns-light`** (Home 2): a white rounded panel. The logo, the description, and a newsletter form on one side, and the link columns and the contact details on the other.

<div class="border border-dark">
  ![Covena columns-light footer with the newsletter form](/images/covena/footer-columns-light.jpg)
</div>

**`offices`** (Home 3): a navy band with a card for each office (address, phone, and opening hours) and one row of links.

<div class="border border-dark">
  ![Covena offices footer with three office cards](/images/covena/footer-offices.jpg)
</div>

### Choose The Footer Of A Page
Like the header, each page picks its footer in its route file in `src/pages/[...lang]/`:

```astro
<Base {...data} headerVariant="transparent" footerVariant="offices">
```

`footerVariant` is `marquee` (the default), `columns-light`, or `offices`. A page that doesn't set it gets `marquee`.

**Footer reveal.** On Home 1 the page slides up off the footer, which waits underneath. It is turned on with `footerReveal: true` in the frontmatter of `src/content/homepage/<language>/-index.md`. Add the same line to another page's content file to use it there. It works from 768 px wide, and only when the footer is shorter than the window. See [Animations](/covena/customization/animations/).

### Where The Text Comes From
| Part                                | Where you change it                                                                     |
| ----------------------------------- | --------------------------------------------------------------------------------------- |
| Description under the logo          | `footer.description` in `src/i18n/<lang>.json`                                           |
| Link columns                        | `footer` in `src/config/menu.<lang>.json`                                                |
| Row of links (`offices` footer)     | `footerLinks` in `src/config/menu.<lang>.json`                                           |
| Legal links                         | `footerLegal` in `src/config/menu.<lang>.json`                                           |
| Practice areas strip (`marquee`)    | The link names in the **Practice areas** mega menu (`headerPrimary`), the first ten      |
| Address, phone, email               | `contactInfo.address` in `src/i18n/<lang>.json`, and `[settings.contactInfo]` in `config.toml` |
| Office cards (`offices`)            | The office files in `src/content/offices/<language>/`                                    |
| Social icons (`marquee`)            | `main` in `src/config/social.json`                                                       |
| Column and section headings         | `footer.contactTitle`, `footer.officesTitle`, `footer.newsletterTitle` in `src/i18n/<lang>.json` |

See [Menus](/covena/customization/menus/) and [Firm Info](/covena/customization/firm-info/).

### Newsletter Form
The `columns-light` footer has a Mailchimp signup form:

```toml
# src/config/config.toml
[settings.subscription]
  enable            = true
  title             = "" # Empty uses footer.newsletterTitle
  note              = "" # Empty uses subscription.description
  formAction        = "" # Your Mailchimp subscription endpoint
  mailchimpTagValue = ""
```

To connect it, open Mailchimp, go to **Audience > Signup forms > Embedded form**, and copy the URL in `<form action="...">`. Paste it into `formAction`. It looks like `https://yourbrand.us21.list-manage.com/subscribe/post?u=...&id=...`. The form posts to Mailchimp without leaving the page.

While `formAction` is empty, the form runs in demo mode: it checks the email and tells the visitor nothing was sent. Set `enable = false` if you don't send a newsletter. The newsletter panel on `/insights/` has its own `formAction` in `src/content/sections/<language>/newsletter.md`. See [Forms](/covena/customization/forms/).

### Copyright Line
```json
// src/i18n/en.json
"footer": {
  "copyright": "Copyright © {{ year }} Covena Law | All rights reserved."
}
```

`{{ year }}` becomes the current year when the site builds. Change the firm name in each language file. `[settings.copyright]` in `config.toml` turns the line off (`enable = false`), or sets one text for every language (`text`).

### Theme Credit
The last row says "Built on the Covena Astro theme by Getastrothemes". The sentence is `footer.themeCredit` in each language file, and the part in square brackets becomes the link:

```json
"themeCredit": "Built on the Covena Astro theme by [Getastrothemes]"
```

```toml
[settings.themeCredit]
  enable = true
  url    = "https://getastrothemes.com/astro-themes/covena/"
```

The same line is the last line of `llms.txt`. `enable = false` removes it from both. We appreciate it if you keep it.

### Ask AI Row
Above the theme credit, every footer has a row with **Ask AI about this page** links (ChatGPT, Claude, Perplexity, Grok) and links to the Markdown copy of the page, `llms.txt`, and `llms-full.txt`. `footer = false` in `[settings.pageActions]` hides the row, and `providers` sets the assistants. See [AI Links & llms](/covena/features/ai-links-llms/).

### Language Menu
The footer has a language menu on every page and at every width, because the header only has room for one from 1320 px wide. It lists the languages in `src/config/language.json`, and it is hidden when `[settings.multilingual] enable` is `false`.

<Aside type="note">
  The **Cookie settings** link in the legal row reopens the cookie banner. It
  hides itself when the banner is turned off. See
  [Cookies & Analytics](/covena/customization/cookies-analytics/).
</Aside>

### Files For Developers
| File                                                        | What it does                              |
| ----------------------------------------------------------- | ----------------------------------------- |
| `src/layouts/components/global/Footer.astro`                | Picks the layout                          |
| `src/layouts/components/global/footer/FooterMarquee.astro`  | The `marquee` footer                      |
| `src/layouts/components/global/footer/FooterColumnsLight.astro` | The `columns-light` footer            |
| `src/layouts/components/global/footer/FooterOffices.astro`  | The `offices` footer                      |
| `src/layouts/components/global/footer/FooterLegal.astro`    | The shared bottom rows                    |
| `src/layouts/components/global/footer/FooterAi.astro`       | The Ask AI row                            |
| `src/layouts/components/global/footer/FooterCredit.astro`   | The theme credit                          |
| `src/styles/footer.css`                                     | Footer styles                             |

### Do It With AI
```text
Update the footer for my firm. Set footer.description in every file in src/i18n/ to "[ONE SENTENCE]",
translated, and change "Covena Law" in footer.copyright to "[FIRM NAME]", keeping {{ year }}. In
src/config/social.json put in my profiles [LINKS] and set enable to false on the others. Then set
[settings.subscription] formAction in src/config/config.toml to "[MAILCHIMP URL]".
```