# Footer Builder

The public footer is managed from:

`Admin → Settings → CMS → Header & Footer`

## Theme-specific layouts

Each installed public theme keeps its own footer-builder configuration. Select the theme in the **Editing theme** field before editing. Saving the form stores all footer layouts currently edited in the workspace.

## Workflow

1. Enable the custom footer.
2. Choose whether it replaces the theme's original footer.
3. Select one to six columns.
4. Set each column's width weight.
5. Add widgets to columns and drag them into the required order.
6. Configure colors, spacing, container width, and the bottom bar.
7. Save the Header & Footer Builder.

## Widgets

- **Company / Brand** — light footer logo, company name, and description.
- **Menu** — selects an existing CMS menu. A menu ID of `0` automatically uses the active theme's footer menu and falls back to its main menu.
- **Contact Information** — address, phone, email, and service hours.
- **Custom Text** — administrator-controlled plain text with preserved line breaks.
- **Mini Contact Form** — sends messages through the existing public contact-message endpoint and supports optional name, phone, and subject fields.
- **Social Links** — renders the social URLs configured in general CMS settings.

Widgets can be reordered within a column or dragged between columns. Columns can also be reordered.

## Footer content library

Company details, copyright, risk notice, and the light logo are stored once and reused by widgets. They are not automatically appended to the theme. This prevents duplicate footer blocks.

## Native footer replacement

When **Replace the theme’s original footer** is enabled, the runtime hides the supplied theme footer and mounts exactly one builder-controlled footer. The previous generic runtime company block and automatic footer-menu strip are no longer rendered.

## Contact form

The mini contact form posts to `contact.messages.store`, uses CSRF protection and the existing rate limiter, saves the message in the administrator Message Center, and preserves the existing realtime contact-message notification behavior.
