Header and footer with the builder (Theme Builder)

For developersVersion 1.0.0Last updated:

The site’s header and footer can be created with the visual builder, with no code and no package: sections, containers and widgets (menu, logo, search, language, buttons, social, newsletter…), just like a page.

Create. Home → Header and footer → “Header and footer with the builder” card → + Create a header or + Create a footer. You choose a model and the editor opens.

Header modelsWhat it includes
Logo on the left and menu on the rightLogo, menu and call-to-action button. Sticky on scroll.
Centered logo with the menu on the sidesThe menu split on both sides of the logo (the 1st half on the left and the 2nd on the right); on mobile it shows whole in the panel.
With search and buttonLogo, centered menu, dropdown search and button.
Glass pills over the front pageOverlaid on the hero: menu in glass pills, logo with an icon in a cut-out tab (notch) in the center, glass search, dark button with the arrow in a circle and the full menu button. On scroll it stays fixed with a background.
Footer modelsWhat it includes
Card: slogan, columns, social and newsletterA rounded card inside the margins: logo with icon, a slogan with highlighted words in pills, link columns with a title, social links in bordered pills, the newsletter and the legal line.
Link columnsLogo and tagline, three link columns (menus), social links and the legal line, on the site’s dark color.
Newsletter, social and legalCall to subscribe with the newsletter form, logo, menu, social links and legal line.
Simple, single lineLogo, menu and social links in one row, and the legal line.

The models only use the kit bridge variables (--bos-dark, --bos-surface, --bos-bg, --bos-accent…) and the site’s button styles: the same model looks different, and its own, on each site.

List. The card shows each header and footer with its name, its behavior (Sticky · Over the hero · Hides on scroll down), where it’s shown, its status and the buttons Edit (ES) / + EN (translation), Activate/Deactivate and Delete. When deactivated (draft) it isn’t shown.

In the editor (document tab):

  • Where it’s shown: Whole site, Only on some pages or On the whole site except some pages. You check views (Front page, Blog posts, Blog and archives, Search results, 404 error) and search for specific pages or posts (their translations count too). With several languages, checkboxes per language (none checked: all).
    • If several apply to a page, the most specific wins: “only on” › “except on” › “whole site”; on a tie, the oldest.
    • Each language has its own version (linked translation). If the one for the page’s language is missing, the main language’s is used.
  • Header behavior (per device: Desktop, Tablet, Mobile):
    • Sticky on scroll (position: sticky, below the admin bar if there is one).
    • Transparent over the first section (hero): it floats above the first section, with no background. Sticky and overlaid at once: position: fixed. It gives that section top padding so the menu doesn’t cover its content. In the editor, an overlaid header is previewed over a dark sample background.
    • Hide on scroll down and show on scroll up (requires it to be sticky). It doesn’t hide with the mobile menu open or with focus inside it.
    • On scroll down: background (by default, the site’s), text color (useful if the header is white over a photo) and shadow.

Where it’s rendered.

  • Where it applies, it replaces the package’s header or footer (on pages with a canvas and, with “On the whole site”, on all of them). A header “only on the front page” coexists with the package’s on the rest.
  • Without packages, when you create the first header or footer BuilderOS starts rendering the whole site (“Where they are used” → On the whole site): pages with builder sections full-screen and the rest (blog, search, 404, normal pages) with the theme templates. That way a site can be built 100% with the builder.
  • The header goes in a <header class="bos-site-header"> and the footer in a <footer class="bos-site-footer"> (landmarks). Their sections use <div>.
  • The announcement bar “in the header” is rendered as the first child of that header (see chapter 13).

Performance and cache. builder-os-nav.css (inline with “critical CSS”) and, only if the header is sticky or hides on scroll down or there is a menu, builder-os-nav.js (≈10 KB unminified, defer). Nothing depends on the visitor: compatible with page cache. Saving a header or footer clears the whole site’s cache.

Permissions. Creating and editing headers and footers requires edit_theme_options (like theme templates). They have version history.