Skip to content

Header Layouts

The Flux theme ships with all the Header layouts used in the demo site. You can edit these preset layouts directly or create brand-new custom layouts.

A Header layout consists of the 9 Grids Area, overall and area settings, column settings, mobile settings, and various controls, each described below.

Cache reminder

Because of browser caching, the page may not display the effect correctly immediately after saving. Press Ctrl + F5 to refresh the page and clear the cache.

Header Layout List


9 Grids Area

We divide the Header into 3 rows × 3 columns, forming a nine-grid. You can add controls to each cell.

9 Grids Area

The three rows correspond to three horizontal areas of the Header (by default, only the Middle row is enabled):

RowDescriptionDefault State
TopUsually holds info bars such as contact details and social iconsHidden (click the eye icon to enable)
MiddleThe main navigation area; Logo, menu, search, etc. are usually placed hereEnabled
BottomUsually holds secondary navigation, decorative bars, etc.Hidden (click the eye icon to enable)

Within each row there are again three columns — Left / Center / Right.

Common layout ideas

  • Logo on the left + navigation centered: Logo in Middle-Left, navigation in Middle-Center.
  • Logo centered + navigation on both sides: Logo in Middle-Center, main navigation in Middle-Left, secondary menu in Middle-Right.
  • Top info bar + main navigation: Contact info in Top-Left, Logo in Middle-Center, button in Middle-Right, main navigation in Middle-Center.

Header Settings

Click the edit icon to enter the Header's overall settings.

Header Settings

Header Position

Sets whether the Header floats over the Banner or page title. You can choose floating (float and overlay) or regular positioning.

When enabled, the Header stays fixed at the top of the browser as you scroll down the page.

Sticky Header Type

Sets the switch style of the sticky header (such as sticky for a smooth stick), which determines the animation effect on scroll.


Header (Top / Middle / Bottom) Settings

By default, the Top and Bottom rows are hidden. Click the eye icon to enable them; click the edit button to configure that area.

Top Middle Bottom Areas

General

SettingDescription
Row Height (px)Sets the height of the row
LayoutSets the width of the content area; can be full width or fixed width
Area Space (px)Sets the spacing between the Left, Center, and Right columns
Distance Between Controls (px)Sets the distance between controls within the same column

Split Line Between Grids — Whether to show a divider line between each pair of grids.

Split Line

Bottom Line — Whether to show a divider line at the bottom of the area.

Bottom Line

Display Shadow — Whether to show a gray shadow at the bottom of the area.

Shadow

Accent Color — Sets the accent color for the area, typically used for the color when a control is hovered or clicked. By default it follows the theme accent color variables (such as var(--accent-color), var(--accent-color2)).

Accent Color

Extra class name — Attaches a custom CSS class to the area.

Background Settings

Set a background color or background image for the area.

Background Settings

Typography

Set the font size, color, font family, and other text styling for the area.

Typography

Sticky Header (per-area)

Configure the area's behavior individually when it is in the sticky header state.

Sticky Header per Area

SettingDescription
Hide on StickyWhen enabled, the area is not displayed when scrolling switches to the sticky header
Sticky ColorThe foreground color of the area in the sticky state (e.g. dark / light)
Sticky Background ColorThe background color of the area in the sticky state
Sticky Height (px)The height of the area in the sticky state (usually smaller than the normal state, e.g. 64px)
Sticky ShadowWhether to display a shadow in the sticky state

Why configure it separately

In the normal state, a Header might use a dark background with white text (overlaying the Banner); after scrolling and switching to the sticky header, it typically changes to a light background with dark text to stay readable. With per-area Sticky settings, the same Header can present completely different visual styles in the two states.


Header Column Settings

General

SettingDescription
Column widthSets the width of the column
ArrangementSets the stacking direction of controls within the column: vertical or horizontal
Text AlignSets the text alignment

Background Settings

Set a background color or background image for the column.


Mobile Header Settings

Click the mobile icon to switch to the settings interface for the mobile Header layout. The mobile Header is likewise divided into Left / Center / Right areas, each of which can hold controls and panes.

Mobile Header


Controls

Controls are pre-built functional modules that can be dragged into any area of the nine-grid for use.

Drag Controls

Each control has an edit button next to it; click it to enter its settings.

Edit Controls

Available Controls List

The Controls tab in the left panel provides the following controls (some appear only in desktop or mobile mode). The detailed settings of commonly used controls are introduced one by one below.

ControlDescriptionAvailable On
Horizontal MenuThe site's main navigation menu, supports Mega Menu effectsDesktop
Mobile MenuA mobile hamburger menu; tap to expand a side navigationMobile
Side PanelA panel that slides out from the side on button click; can hold menu/search, etc.Desktop
Overlay MenuA full-screen overlay menu; on click the menu fills the entire screenDesktop
Overlay PanelA full-screen overlay panel with effectsDesktop
Menu 3D PopupA popup menu with 3D animationDesktop
Popup Menu / Popup Menu 2 / Popup Menu 3Three popup menu styles (used with Side Nav)Desktop
Popup SearchA popup-style search used with Side NavDesktop

Function-type

ControlDescriptionAvailable On
LogoDisplays the site logo imageDesktop / Mobile
Login UserLogin/registration entry and user informationDesktop
LanguageSwitcher for multilingual sitesDesktop
SearchA search box; supports inline or popup styleDesktop / Mobile
Google TranslateThe Google website translation pluginDesktop
AccessibilityWCAG accessibility features (contrast, font size, readable fonts, etc.)Desktop

General Elements

ControlDescriptionAvailable On
Vertical Separator LineSeparates adjacent controls to enhance visual hierarchyDesktop
Text BoxCan hold any HTML content (social icons, link lists, buttons, custom text, etc.)Desktop / Mobile
PaneAn independent content area (under the Pane tab, can hold DNN modules)Desktop / Mobile

Detailed settings for each control are described below.


The Logo control displays the site logo image in the Header.

Logo Control

The settings interface is split into Main Logo and Sticky Header Logo.

Logo Settings

SettingDescription
SourceThe source of the logo image: DNN site logo or a custom logo. The DNN site logo is set in Admin > Site Settings
Logo URLThe URL of the custom logo image
High-DPI (retina) Logo URLThe logo image for high-DPI (Retina) screens; the file name must end with -2x, for example logo-d-2x.png
Max WidthThe maximum width of the logo
Max HeightThe maximum height of the logo

Source — The source of the logo image in the sticky header state.

Main Logo vs. Sticky Header Logo

After enabling Sticky Header, the Header switches to the sticky state when the page scrolls. You can set different images for the two states (for example, a colored main logo and a white one when sticky) to suit different background colors.


Horizontal Menu

The Horizontal Menu control displays the site navigation menu in the Header.

Horizontal Menu Control

The settings interface contains three parts: Main Menu, Flyout Menu, and Mega Menu.

Horizontal Menu Settings

SettingDescription
Menu TypographyThe text styling (font size, color, font family, etc.) of the first-level menu
Menu Item SpacingThe top, bottom, left, and right spacing between menu items

Menu Item Spacing

Menu Hover Style — The appearance style of a menu item on hover; 4 options are available.

Menu Hover Style

SettingDescription
Menu Item Hover Font ColorThe text color of a menu item on hover
Menu Item Hover Accent ColorThe accent color of a menu item on hover
Menu Item Border-radiusThe corner radius of the menu items

Display Middle Logo — Whether to display a logo in the middle of the menu.

Display Middle Logo

Flyout Menu

The flyout menu refers to the submenu that appears after a first-level menu item expands (popping out from the side on hover).

SettingDescription
Menu TypographyThe text styling of the flyout menu

Flyout Menu Typography

Display Shadow — Whether to display a shadow.

Flyout Menu Shadow

Background — The background of the submenu.

Mega Menu

Mega Menu is an enhanced dropdown menu that can display multi-column content within its expanded area (group titles + multiple groups of links), suitable for navigation with a large amount of information.

SettingDescription
Menu TypographyThe text styling of the Mega Menu

Mega Menu Typography

Menu Title Typography — The text styling of each group title within the Mega Menu.

Mega Menu Title Typography

Display Shadow — Whether to display a shadow.

Mega Menu Shadow

Line Color — The color of the vertical divider lines inside the Mega Menu.

Enabling Mega Menu

Mega Menu is an enhanced effect for top-level menu items. Go to Pages, click the corresponding top-level page's Edit Megamenu, and configure the groups and link content; once enabled, that menu item's dropdown becomes the Mega Menu style.


Login User

The Login User control displays login and registration links in the Header.

Login User Control

The text color of the login user is set in Header Settings > Typography.


Language

The Language control displays a language selector in the Header.

Language Control

There are 7 display types available:

Display Name — The full display name of the language:

Display Name

English Name — The English name of the language:

English Name

Name — The language name:

Name

Native Name — The native (local) name of the language:

Native Name

Two Letter — The two-letter code of the language (e.g. en, zh):

Two Letter

Three Letter — The three-letter code of the language (e.g. eng, zho):

Three Letter

Flags — Displays the language as a flag icon:

Flags


Google Translate

The Google Translate control displays a language selector in the Header that visitors can use to translate the page text.

Google Translate Control

SettingDescription
Default Language TextThe default language
Google Translate LanguageAdds selectable language options to the control

Not available in edit mode

This control is not available in PageBuilder edit mode; it only takes effect in the live browsing state after the page is published.


The Search control displays a search input box in the Header.

SettingDescription
PlaceholderThe default placeholder text of the search box
StyleThe style of the search panel
Accent ColorThe accent color of the search control

Vertical Separator Line

The Vertical Separator Line control displays a vertical divider in the Header.

Vertical Separator Line Control

The color of the divider line is set in Header Settings > Typography.


Text Box

The Text Box control lets you enter text or HTML code.

Text Box Control

Text Box — The code editing area.

Text Box Editor

The many uses of Text Box

Text Box can actually hold any HTML, far beyond plain text. For example, in the official Welcome layout, the social icons on the left, the "Help Center / Docs / email" link list on the right, and the "Get a Quote" button are all implemented by placing the corresponding HTML inside a Text Box.


Mobile Menu

Mobile Menu is a control exclusive to the mobile Header.

Mobile Menu Control

Tap the navigation icon of the mobile menu to pop up the menu.

Mobile Menu Popup

SettingDescription
Level 1 Menu TypographyThe text styling of the first-level menu
Level 2 Menu TypographyThe text styling of the second-level menu
Level 3 Menu TypographyThe text styling of the third-level menu
Current ColorThe text color of the current menu item