Skip to content

Header ​

The header holds the logo, the menu, header buttons and the light and dark switch. Its settings are on the Layout tab of System → Site Template Styles → DC Theme - Default, in the Page and header group.

Layout and Behaviour ​

SettingDefaultDescription
Header layoutMenu centredWhere the menu sits, picked from a drawing of each layout
Header on scrollNormalNormal scrolls away with the page. Fixed stays at the top. Smart hides going down and returns on the way up

The four header layouts:

LayoutArrangement
Menu beside the logoLogo, then the menu reading left to right, header buttons on the right
Menu centredLogo left, menu in the middle, header buttons right
Menu at the far rightLogo left, menu beside the header buttons on the right. Gives a wide logo the whole left of the bar
Logo above a centred menuTwo rows: the logo centred, the menu centred beneath it. Suits a long name

Any layout works with any scroll behaviour.

To use a different header on some pages, duplicate the template style, change Header layout on the copy, and assign the copy to those menu items on its Menu Assignment tab.

What Goes in the Header ​

The header is built from module positions. Nothing in it is hardcoded.

PositionWhere it renders
menuThe main navigation, between the logo and the header buttons. Publish a DC Theme - Menu module here
header-actionsThe right of the header, usually a call to action button
switchThe right of the header, after header-actions

The phone number, social icons and the light and dark button can also be drawn in header-actions by setting their position on the Social and Features tabs – see Extras and Colours.

Top Bar ​

A thin bar above the header with a left and a right side. It appears only when something is in it.

PositionWhere it renders
topbar-lLeft side of the top bar
topbar-rRight side of the top bar

The phone number, social icons and the light and dark button can be placed in either side by their own settings. Below 768px the two sides stack into one centred column.

Mobile Menu ​

Below 992px the menu collapses into a button in the header, which opens a panel from the side.

PositionWhere it renders
offcanvasThe menu in the panel. When empty, the panel reuses the modules in menu, and a DC Theme - Menu module there is shown vertically
offcanvas-bottomBelow the menu in the panel, for anything that is not navigation

The panel can also hold call and WhatsApp buttons, the social icons and the light and dark button. The menu button only appears when the panel has something to show.

SettingDefaultDescription
Buttons in the offcanvasCall, WhatsAppTick which buttons the panel shows. Each uses the number from the Identity tab and appears only when that number is set

Shown On ​

In the Shown on group, tick the screens each part appears on. Desktop is 992px and up, Tablet 768px to 991px, Phone below 768px.

SettingDefaultDescription
Top bar shown onDesktop, Tablet, PhoneClearing them all also hides topbar-l and topbar-r
Header shown onDesktop, Tablet, PhoneThe menu button lives in the header, so a screen without it has no navigation
Header buttons shown onDesktop, TabletAnything published to header-actions. Off on phones is common

Widths ​

In the Region widths group:

SettingDefaultDescription
Top bar widthContainerContainer holds the row to the container width. Fluid fills the screen but keeps the edge padding. Full drops that too
Header widthContainerSame choices as Top bar width

Container width in the Page and header group sets how wide a Container row may grow – see Layout.

The Arrangement group on the same tab shows a layout map of the whole page, where these switches and widths can also be set per screen.

Next Steps ​

  • Layout – regions, widths and every position
  • Menu module – dropdowns and mega panels

Joomla Extensions by Contona