Customizing The Footer
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
| Layout | File | What it shows |
|---|---|---|
footer-1 | Footer.astro | The footerPrimary and footerSecondary menus, social links, and copyright |
footer-2 | FooterTwo.astro | The subscription form, the footerTertiary menu under a title, your address, phone, and email under a title, copyright, and social links |
footer-3 | FooterThree.astro | A 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.
| Page | Layout |
|---|---|
/ | footer-1 |
/personal-portfolio/, /startup-agency/ | footer-3 |
| Every other page | footer-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): thetitleanddescriptionofsrc/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): theformofsrc/content/sections/<language>/contact-section.md. See Contact Form. - Ask AI row: see AI Links & llms. Set
footer = falseunder[settings.pageActions]to turn the row off. The file issrc/layouts/components/global/footer/FooterAi.astro.
Copyright And Titles
These are in each language file, so they can change with the language:
- Open
src/i18n/en.json, then the same file for each of your other languages, such assrc/i18n/fr.jsonandsrc/i18n/ar.json. - Find the
footergroup. - Change the values in every language.
"footer": { "menuTitleLinks": "Links", "contact": "Contact", "copyright": "Copyright © {{ year }} Folex", "description": ""}| Key | What it does |
|---|---|
menuTitleLinks | The title above the menu in footer-2 |
contact | The title above your contact details in footer-2 |
copyright | The copyright line. {{ year }} shows the current year |
description | Not 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.
[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]:
[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]/, withfooterLayout on Base. Change only that prop. Then update the "copyright" value under "footer" inevery file in src/i18n/ to "[COPYRIGHT TEXT]", and keep {{ year }}. Then run npm run astro-check.