Customizing the Footer
Files: src/i18n/<lang>.json, src/config/menu.<lang>.json, src/config/config.toml, src/layouts/components/global/ · Skill level: Beginner
In the Tina edition, these are Interface labels, Menus, and Site settings at /admin/, and every page’s form has a Footer layout field. In the Sanity edition, they are Interface labels and Menus under your language in the Studio, and Site settings > Settings. Which footer a page uses stays in code.
Techbyte includes two footers, Footer.astro and FooterTwo.astro in src/layouts/components/global/, and pulls most footer content from configuration and language files.
- Logo – Both footers use
logoAlternatefrom[site], the light logo - Social Links – Configure your social links. Footers show the first four that are enabled
- Footer Menus – Defined in
src/config/menu.<lang>.json - Contact Details – Footer 1 shows
[settings.contactInfo]
Choosing a Footer
Pages opt into a footer through Base.astro:
<Base {...page?.data} footerLayout="footer-1"> <!-- sections --></Base>footer-1renders a contact section (ContactSection.astro) directly aboveFooter.astro. Home 01 uses this. Below the logo and description, it has a Company menu, your contact details, and images of your latest six projects.footer-2(the default) rendersFooterTwo.astro, with the logo, a large description, a row of links, and social icons. It accepts afooterDecorativeColorprop for the shape above it:"accent"by default,"light","transparent", or"none".
Copyright Text and Footer Description
Techbyte reads its footer copy from the language files, so each language has its own.
Example: English (en.json)
"footer": { "menuTitleLinks": "Links", "freeSupport": "Free Support", "description": "Managed IT, cloud, cybersecurity, and software delivery for growing businesses.", "descriptionSecondary": "We help teams reduce technology risk, improve uptime, and ship better digital systems.", "contact": "Contact", "copyright": "Copyright © {{ year }} Techbyte. All Rights Reserved."}descriptionis used by Footer 1, anddescriptionSecondaryby Footer 2.- The
{{ year }}placeholder incopyrightis replaced with the current year automatically, and the text supports inline Markdown links.
- Open each language file, such as
src/i18n/en.json. - Locate the
"footer"object. - Update
"description","descriptionSecondary", and"copyright".
Some labels in the footer are in the common object: company, getInTouch, workHourValue, and recentProjects.
Two settings in config.toml change the footer too:
[settings] footerDescription = "" footerBackgroundImage = "/images/others/footer-bg.png"footerDescriptionshows on every language, in both footers, when it isn’t empty.footerBackgroundImagesets the decorative background image used by Footer 1.
The enable and text keys under [settings.copyright] have no effect. Change footer.copyright in each language file.
Footer Menus
Techbyte’s footer links live in src/config/menu.<lang>.json across three groups:
{ "footerPrimary": [ { "enable": true, "name": "About Us", "url": "/about/" }, { "enable": true, "name": "Services", "url": "/services/" } ], "footerSecondary": [ { "enable": true, "name": "Home", "url": "/" }, { "enable": true, "name": "Contact", "url": "/contact/" } ], "footerPrivacy": [ { "enable": true, "name": "Privacy Policy", "url": "/privacy-policy/" }, { "enable": true, "name": "Terms of Use", "url": "/terms-conditions/" } ]}footerPrimary→ the Company menu in Footer 1footerSecondary→ the row of links in Footer 2footerPrivacy→ the policy links in the copyright row of both
In the footer, enable doesn’t hide a link. To remove a link, delete its row. See Menus.
The Copyright Row
Both footers end with the same row (FooterCopyright.astro). It holds three things:
- The Ask AI row (
footer/FooterAi.astro). Turn it off withfooter = falseunder[settings.pageActions]. See AI Links & llms. - The copyright line and the
footerPrivacylinks. - The theme credit (
footer/FooterCredit.astro), editable inconfig.toml:
[settings.themeCredit] enable = true text = "..." url = "..."Do It With AI
Update my footer. In each file in src/i18n/, set footer.description, footer.descriptionSecondary, andfooter.copyright to [TEXT], in that file's language. Keep the {{ year }} placeholder. In eachsrc/config/menu.<lang>.json file, set footerPrimary, footerSecondary, and footerPrivacy to these links:[LINKS]. Don't change the footer components. Then run npm run astro-check.