# Footer & CTA Band

## Footer & CTA Band

**Files:** `src/config/config.toml`, `src/config/menu.<language>.json`, `src/config/social.json`, `src/i18n/<language>.json`, `src/content/sections/english/call-to-action.md` · **Skill level:** Beginner

The footer closes every page with your links, contact details, office address, social links, the legal row, a row of Ask AI links, and the theme credit. Lotline has three footer layouts. Above the footer, every page also shows a **CTA band**: a closing call to action with one button.

<div class="border border-dark">
  ![Lotline columns footer under the photo call to action](/images/lotline/footer-columns.jpg)
</div>

### Choose A Footer Layout
```toml
# src/config/config.toml
[settings.layout]
  # columns | pine | minimal
  footer = "columns"
```

| Layout | What it shows | Demo page |
| ------ | ------------- | --------- |
| `columns` | White. The logo, your phone and email, and the social buttons. Then the first two link columns, and an **Office** column with your agency name, address and a **See on map** link. A line, then the copyright, the language switch and the legal links | `/`, inner pages |
| `pine` | The same on a pine panel, with a "Get new listings by email" signup row on top | `/home-2/` |
| `minimal` | One row: the logo, the first link column as inline links, and the social buttons. Then the legal row | `/home-3/` |

<div class="border border-dark">
  ![Lotline pine footer with the newsletter row](/images/lotline/footer-pine.jpg)
</div>

<div class="border border-dark">
  ![Lotline minimal footer under the lime call to action](/images/lotline/footer-minimal.jpg)
</div>

**One page, another layout.** Add `footerLayout` to the page's frontmatter. It wins over the config:

```yaml
---
title: "Homes for rent"
footerLayout: "minimal" # columns | pine | minimal
---
```

The second and third homepages set their own this way. On the first homepage the footer sits under the last section and is uncovered as the page scrolls. That effect is part of the motion settings and stays off when `[effects] motion = false`.

### Footer Links
The link columns are the `footer` list in each `src/config/menu.<language>.json`. The last column (Legal) goes into the bottom row next to the copyright. The `columns` and `pine` layouts show the first two of the other columns, and `minimal` shows the first one. The column headings are the `label` values in that file. See [Menus](/lotline/customization/menus/#footer-menus).

The phone, email, agency name and address come from `[business]` in `config.toml`. See [Agency Details](/lotline/customization/business-info/). The **Office** heading and **See on map** are UI strings: `footer.office` and `footer.seeOnMap` in `src/i18n/<language>.json`.

### Copyright
```toml
[settings.copyright]
  enable = true
  text   = "" # Empty: `footer.copyright` in src/i18n/<language>.json
```

The default line is `footer.copyright` in each language file: `© {year} {brand}. All rights reserved.` `{year}` becomes the build year and `{brand}` your `site.title`. A value in `text` is used for every language.

### Language Switch
The legal row of every layout has a small switch with each language (En, Fr, العربية). It opens the same page in the other language. The names come from `languageName` in `src/config/language.json`. With one language, the switch is hidden. See [Internationalization](/lotline/customization/internationalization/).

### Ask AI Row
Under the legal row, every footer has **Ask AI about this page** links (ChatGPT, Claude, Perplexity, Grok) and **Read with AI** links to `llms.txt` and `llms-full.txt`. Choose the assistants with `providers` in `[settings.pageActions]`, or set `footer = false` there to remove the row. See [AI Links & llms.txt](/lotline/features/ai-links-llms/).

### Theme Credit
```toml
[settings.themeCredit]
  enable = true
  text   = "Built on the Lotline Astro theme by [Getastrothemes]"
  url    = "https://getastrothemes.com/astro-themes/lotline/"
```

The last line of every footer, and the last line of `llms.txt`. The part of `text` in `[brackets]` becomes the link. We appreciate it if you keep it, and you can turn it off with `enable = false`.

### Newsletter
The `pine` footer has a signup row that sends addresses to your Mailchimp list. Paste your Mailchimp form URL into `formAction` in `[settings.subscription]`, or set `enable = false` there to hide the row. The heading ("Get new listings by email") and the line under the field are `subscription.title` and `subscription.note` in each language file. See [Forms](/lotline/customization/forms/).

### Social Links
The square social buttons come from `src/config/social.json`:

```json
{
  "main": [
    { "enable": true, "label": "facebook", "icon": "/images/icons/facebook.svg", "url": "https://www.facebook.com" },
    { "enable": false, "label": "twitter", "icon": "/images/icons/twitter.svg", "url": "https://twitter.com" },
    { "enable": true, "label": "instagram", "icon": "/images/icons/instagram.svg", "url": "https://www.instagram.com" },
    { "enable": true, "label": "linkedin", "icon": "/images/icons/linkedin.svg", "url": "https://www.linkedin.com" }
  ]
}
```

Put your own profile in each `url`. The shipped ones point at the networks' home pages. Set `enable` to `false` on the ones you don't use. The icons are SVG files in `src/assets/images/icons/`. To add a network, save its SVG icon there and add an item with that path. `label` is read by screen readers, so write the network's name.

### The CTA Band Above The Footer
Every page ends with a call to action before the footer. Its default text and look are in `src/content/sections/english/call-to-action.md` (and each other language folder):

```yaml
---
enable: true
title: "Planning a *move*? Let's talk it through" # two lines at most; one word may be *emphasis*
description: "Tell us what you're after and one of our agents will call you back."
button:
  enable: true
  label: "Talk to an agent"
  url: "/contact/"
  variant: "accent"
image: "/images/lotline/heroes/cta-band.jpg" # `photo`: the panel's photo; `pine`: the inset photo
imageAlt: ""
options:
  layout: "photo" # photo | pine | lime
---
```

| Layout | What it looks like | Demo page |
| ------ | ------------------ | --------- |
| `photo` | A rounded photo panel with centered white text and a lime button | `/`, inner pages |
| `pine` | A pine panel with the text on one side and an inset photo on the other | `/home-2/` |
| `lime` | A lime band with the text on one side and a pine button on the other | `/home-3/` |

**Change it on one page.** Add a `ctaSection` block to the page's frontmatter with only the keys you want to change. The second homepage uses it to point at a new development:

```yaml
ctaSection:
  title: "Get the plans for *Parkline* Terraces"
  button:
    label: "Get the floor plans"
    url: "/developments/parkline-terraces/"
  options:
    layout: "pine"
```

**Hide it on one page:** `ctaSection: { enable: false }`. **Hide it everywhere:** `enable: false` at the top of `call-to-action.md`.

<Aside type="tip">
  A page's `primaryCta` block also swaps the footer links that point at the
  main button's page (`/valuation/` by default) for its own link. See
  [Header](/lotline/customization/header/#the-main-button).
</Aside>

### Files For Developers
`src/layouts/components/global/Footer.astro` picks the layout. `footer/FooterMain.astro` draws `columns` and `pine`, and `footer/FooterMinimal.astro` draws `minimal`. The shared parts are `FooterSocials.astro`, `FooterLanguages.astro`, `FooterAi.astro` and `FooterCredit.astro` in the same folder. The CTA band is `src/layouts/components/sections/CallToAction.astro`.

### Do It With AI
```text
Switch the site footer to "pine" in [settings.layout] of src/config/config.toml and set
[settings.subscription] formAction to [MAILCHIMP URL]. In src/config/social.json set my
profiles: [NETWORK: URL, ...] and disable the others. Then change the CTA band in
src/content/sections/<language>/call-to-action.md, in every language, to the title "[TITLE]"
and a button "[LABEL]" linking to [URL]. Keep one *accent* word at most in the title.
```