Skip to content
New: Customize your theme with an AI assistant. Read the guide

Files: src/config/config.toml, src/config/menu.<lang>.json, src/i18n/<lang>.json, src/layouts/components/global/ · Skill level: Beginner

Folex has three footer layouts, and each page picks one.

In the Tina edition, edit the footer’s content in Site settings > Settings, Menus, Social links, and Interface labels > Footer at /admin/. In the Sanity edition, it is in Site settings (Settings and Social), and the Menus and Interface labels of each language, in the Studio. The heading and form of footer-3 are in Call to action and Contact section, under Section defaults in Tina and Sections in Sanity. Which layout a page uses stays in code in every edition.

The Three Layouts

LayoutFileWhat it shows
footer-1Footer.astroThe footerPrimary and footerSecondary menus, social links, and copyright
footer-2FooterTwo.astroThe subscription form, the footerTertiary menu under a title, your address, phone, and email under a title, copyright, and social links
footer-3FooterThree.astroA heading and text, a contact form, copyright, social links, and your address, phone, and email

Every layout also has the Ask AI row and the theme credit. The files are in src/layouts/components/global/. None of the layouts shows a logo.

Choose A Layout For A Page

Each page file in src/pages/[...lang]/ picks its footer with footerLayout on Base:

<Base {...page?.data} footerLayout="footer-1">

A page that doesn’t set it uses footer-2.

PageLayout
/footer-1
/personal-portfolio/, /startup-agency/footer-3
Every other pagefooter-2

Where Each Part Comes From

  • Footer menus: edit the menus. That page shows which layout uses which menu.
  • Social links: set your social links.
  • Address, phone, and email: your contact information.
  • Subscription form (footer-2): set up the subscription form.
  • Heading and text (footer-3): the title and description of src/content/sections/<language>/call-to-action.md. Changing them also changes the Call to action section on the pages that show it.
  • Contact form (footer-3): the form of src/content/sections/<language>/contact-section.md. See Contact Form.
  • Ask AI row: see AI Links & llms. Set footer = false under [settings.pageActions] to turn the row off. The file is src/layouts/components/global/footer/FooterAi.astro.

These are in each language file, so they can change with the language:

  1. Open src/i18n/en.json, then the same file for each of your other languages, such as src/i18n/fr.json and src/i18n/ar.json.
  2. Find the footer group.
  3. Change the values in every language.
"footer": {
"menuTitleLinks": "Links",
"contact": "Contact",
"copyright": "Copyright © {{ year }} Folex",
"description": ""
}
KeyWhat it does
menuTitleLinksThe title above the menu in footer-2
contactThe title above your contact details in footer-2
copyrightThe copyright line. {{ year }} shows the current year
descriptionNot shown. None of the Folex footers has a description

A value in config.toml replaces the copyright in every language, so leave it empty unless you want that. Set enable = false to hide the line.

src/config/config.toml
[settings.copyright]
enable = true
text = ""

Theme Credit

Each footer has a small line with the theme credit. You can edit it in config.toml, under [settings.themeCredit]:

src/config/config.toml
[settings.themeCredit]
enable = true
text = "..."
url = "..."

The part of text in square brackets is the link to url. The same text is the last line of llms.txt. It isn’t translated, so it reads the same in every language. The file is src/layouts/components/global/footer/FooterCredit.astro.

Do It With AI

Use footer layout [footer-1 / footer-2 / footer-3] on [ROUTE FILE] in src/pages/[...lang]/, with
footerLayout on Base. Change only that prop. Then update the "copyright" value under "footer" in
every file in src/i18n/ to "[COPYRIGHT TEXT]", and keep {{ year }}. Then run npm run astro-check.
Type something to search...