# Customizing Footer

## Customizing The Footer

**Files:** `src/layouts/components/global/Footer.astro`, `FooterTwo.astro`, `footer/`, `src/i18n/<lang>.json`, `src/config/menu.<lang>.json`, `src/config/config.toml` · **Skill level:** Beginner

In the Tina edition, the footer text is under **Footer** in **Interface labels**, the links under **Menus**, and the settings under **Site settings > Settings** at `/admin/`. In the Sanity edition, they are under your language's **Interface labels** and **Menus** (**Footer 1 links**, **Footer 2 links**), and **Site settings > Settings** in the Studio.

Taxo includes **two footer layouts**:

- `footer-1` uses `src/layouts/components/global/Footer.astro`
- `footer-2` uses `src/layouts/components/global/FooterTwo.astro`

The base layout default is `footer-1`. `home-two.astro` uses `footer-2`.

### Footer 1 Structure
Footer 1 includes:

- logo block
- footer description
- support phone block
- **6 services** loaded from the Services collection
- contact info block
- **6 recent case studies** shown as project thumbnails
- the large "since" text
- `footerPrimary` navigation row
- the Ask AI row (`FooterAi.astro`)
- the theme credit (`FooterCredit.astro`)
- copyright bar

These values come from multiple sources:

- `src/i18n/<lang>.json`
- `settings.contactInfo` in `config.toml`
- `src/config/menu.<lang>.json`
- `src/content/services/`
- `src/content/case-studies/`

### Footer 2 Structure
Footer 2 includes:

- subscription form
- phone and email strip from `settings.contactInfo`
- `footerSecondary` navigation row
- the Ask AI row (`FooterAi.astro`)
- copyright row
- the theme credit (`FooterCredit.astro`)

Footer 2 is the simpler footer layout. Use it when you want a cleaner footer
with subscription, contact details, and secondary links.

### Footer Text In The i18n Files
```json
{
  "footer": {
    "menuTitleLinks": "Links",
    "freeSupport": "Free Support",
    "description": "Nam libero tempore...",
    "contact": "Contact",
    "copyright": "Copyright © {{ year }}. Taxo. All Rights Reserved.",
    "since": "since 1990"
  }
}
```

Keep `{{ year }}`: the theme replaces it with the current year. Change this text in every language.

For Footer 1, this file is the main place to update:

- `footer.description`: the description
- `footer.freeSupport`: the support label
- `footer.copyright`: the copyright text
- `footer.since`: the "since" text

The column headings are `common.ourServices`, `common.contactUs`, and `common.recentProjects`. The working hours are `common.workHour` and `common.workHourValue`.

### Copyright And Theme Credit
```toml
[settings.copyright]
  enable = true
  text = ""

[settings.themeCredit]
  enable = true
  text = "..."
  url = "..."
```

- `[settings.copyright]` applies to Footer 2: `enable` shows or hides the row, and a value in `text` replaces `footer.copyright` on every language. Footer 1 always shows `footer.copyright`.
- `[settings.themeCredit]` is the theme credit, in both footers and in `llms.txt`. It is editable here.

### Ask AI Row
Both footers show a row with Ask AI links and links to the AI-readable files. Turn it off with `footer = false` in `[settings.pageActions]`. See [AI Links & llms](../../features/ai-links-llms/).

### Footer Menus
```json
{
  "footerPrimary": [
    { "enable": true, "name": "About Us", "url": "/about/" }
  ],
  "footerSecondary": [
    { "enable": true, "name": "About", "url": "/about/" }
  ]
}
```

- `footerPrimary` is used by Footer 1
- `footerSecondary` is used by Footer 2

The footer shows every link in its list, so delete a link to remove it. Setting `enable` to `false` hides an item only in the header.

### Turn Subscription On Or Off
```toml
[settings.subscription]
  enable = true
  title = ""
  note = ""
  formAction = "https://..."
  mailchimpTagValue = ""
```

When `enable = false`, the Footer 2 subscription block disappears. `formAction` starts as a placeholder, so nothing is delivered until you set your own. The form's heading is `subscription.title` in `src/i18n/<lang>.json`.

### Switch Footer Variant On A Page
```astro
// src/pages/[...lang]/home-two.astro
<Base {...page?.data} footerLayout="footer-2">
```

Use page-level footer switching when you want a different shell for one route.
Do not edit the global footer component unless you want the change everywhere
that footer layout is used.

In the Tina edition, each page's form also has a **Footer layout** field. Leave it empty to keep the page's usual layout. In the Sanity edition, the layout a page uses stays in its page file.