Skip to content

Layout ​

The page is a stack of regions, each filled by module positions. Region settings are on the Layout tab of System → Site Template Styles → DC Theme - Default. A region with nothing published in it takes no space.

Page Order ​

From top to bottom:

  1. Top bar – topbar-l, topbar-r
  2. Header – logo, menu, header-actions, switch
  3. Hero – hero
  4. Breadcrumbs – breadcrumbs
  5. Sections top – sections-top
  6. Content – sidebar-left, then content-top, the page itself, content-bottom, then sidebar-right
  7. Sections bottom – sections-bottom
  8. Footer – footer-1 to footer-6
  9. Copyright row – copyright-l, copyright-r

Rows 3 to 5 can be reordered – see Band Order.

When a page has no content of its own – for example a menu item pointing at an empty article, with the page built from a hero and sections – the content area is left out, so no blank gap sits between the bands.

Module Positions ​

PositionWhere it rendersModule style
topbar-lTop bar, left sideNone
topbar-rTop bar, right sideNone
menuHeader, main navigation. Also reused in the mobile panel when offcanvas is emptyNone
header-actionsHeader, right side. Usually a call to action buttonNone
switchHeader, right side after header-actionsNone
heroFull-width band below the headerNone
hero-formInside a Hero Banner set to show Another module, beside or below the wordsSet by the module
breadcrumbsBelow the hero, at the content width. Never shown on the home pageNone
sections-topFull-width bands above the contentNone
content-topInside the content column, above the pagePlain
sidebar-leftLeft column beside the content. Moves below the content under 992pxCard
sidebar-rightRight column beside the content. Moves below the content under 992pxCard
content-bottomInside the content column, below the pagePlain
sections-bottomFull-width bands below the contentNone
footer-1 to footer-6Footer columnsFooter
copyright-lBottom row of the footer, left sideNone
copyright-rBottom row of the footer, right sideNone
offcanvasMobile menu panel. Replaces the header menu thereNone
offcanvas-bottomMobile menu panel, below the menuNone
debugEnd of the pageNone

The Section and Menu modules can also read any position name you invent, such as section-features or mega-services. Those positions are not in the list above, so type the name into the module's Position field.

Module Styles ​

The template adds five module styles, listed under Module Style on a module's Advanced tab:

StyleLook
dcnoneModule output only, no wrapper or title
dcplainOptional title above the content, no box
dccardBordered panel with a title
dcborderedA rule beneath, no box
dcfooterFooter column title above the content

Band Order ​

The Arrangement group shows a layout map of the page. Drag the Hero, Breadcrumbs and Sections top rows to change their order. The map writes the result to Band order.

SettingDefaultDescription
Band orderhero,breadcrumbs,sections-topSet by dragging the rows in the layout map

The map also shows where the template draws the theme switch, social icons, phone number and copyright line, and lets you set the Shown on switches and widths for each screen.

Shown On ​

Tick the screens each region appears on. Desktop is 992px and up, Tablet 768px to 991px, Phone below 768px. Every region defaults to all three, except Header buttons shown on.

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
Hero shown onDesktop, Tablet, PhoneAnything published to hero
Show breadcrumbsDesktop, Tablet, PhoneThe trail showing where a page sits. Never shown on the home page
Sections top shown onDesktop, Tablet, PhoneEverything published to sections-top
Sections bottom shown onDesktop, Tablet, PhoneEverything published to sections-bottom
Footer shown onDesktop, Tablet, PhoneThe footer columns. The copyright row is separate
Copyright row shown onDesktop, Tablet, PhoneThe line under the footer, and anything in copyright-l or copyright-r

A region hidden on every screen is not rendered at all.

Widths ​

SettingDefaultDescription
Container width1280px1140px, 1280px or 1440px. How wide a row set to Container may grow. 1140 leaves more margin, 1440 suits photographs
Top bar widthContainerContainer, Fluid or Full
Header widthContainerContainer, Fluid or Full
Hero widthFullContainer, Fluid or Full
Sections top widthFullContainer, Fluid or Full
Content area widthContainerContainer or Fluid. Full is not offered, because text needs a measure to stay readable
Sidebar widthNarrowNarrow (a quarter of the row) or Wide (a third). Wide is ignored when both sidebars are published
Sections bottom widthFullContainer, Fluid or Full
Footer widthContainerContainer, Fluid or Full

Container holds the row to the container width. Fluid fills the screen but keeps the edge padding. Full drops the padding too.

Hero and section bands default to Full because the Hero Banner and Section modules set their own inner width. Anything else published there runs to the screen edge unless you change the band to Container.

Full-Width Bands Inside the Content ​

A Section module in hero, sections-top or sections-bottom already spans the screen. In content-top, content-bottom or a sidebar it sits in the page column; turn on its Reach the screen edges setting to let the band run to the screen edges. Beside a sidebar a band stays inside its column.

In an article, use the dc-section--bleed class for the same effect:

html
<section class="dc-section dc-section--surface dc-section--bleed">
  <div class="dc-section__inner">...</div>
</section>

Swap dc-section--surface for dc-section--brand, or drop it for no tint.

Narrow Pages ​

Put one of these in a menu item's Page Class to limit the line length of the whole page, heading included:

ClassWidth
narrow-4A form, about 35 characters a line
narrow-5A form. The width the login pages use
narrow-6The tightest that still reads well, about 52 characters
narrow-8The usual choice for a page of text, about 69 characters
narrow-10Just in from the edges, for tables or cards

These apply from 992px up and only when there is no sidebar.

SettingDefaultDescription
Footer columns per rowAutomaticAutomatic, or 2 to 6. How many footer positions stand side by side before the row breaks. Automatic keeps up to four across and wraps five or six into rows of three. Applies from 992px up
Footer column shares1,1,1,1,1,1One number per footer position, in order. A column set to 2 is twice as wide as one set to 1. Set them on the footer row of the layout map. Applies from 992px up
Footer alignmentLeftLeft, Centred on phones or Centred

Only footer positions with something in them become columns. On phones the columns stack, and from 576px they sit two across.

Core Page Overrides ​

DC Theme overrides these core views so they match the template:

ViewWhat changes
ArticleTemplate styling, keeping the menu item's page heading and page breaks. The title lines up with the column the body opens with
Category blogArticles and subcategories as a card grid, with page numbers
Featured (home)Articles as a card grid. The page heading steps down to H2 when a hero on the home page holds the H1
ContactContact details beside the enquiry form
Login, logout, registration, password reset, username reminderOne narrow centred column, the form in a panel, with links between the account pages
Profile and profile editMatching account layout
Breadcrumbs moduleSeparators drawn in CSS, so screen readers do not read slashes. Writes BreadcrumbList structured data
PaginationBootstrap pagination in your brand colours
List custom fieldPrints the option's label, not its stored value
Subform custom fieldRows rendered as sections. Put dc-faq in the field's Render Class for an accordion with FAQ structured data

The error page and the offline page are styled by the template too.

Next Steps ​

Joomla Extensions by Contona