Shortcodes

Creating multi-column responsive layouts

Click on the “Edit Page” button to see the actual short codes use to create multi-column responsive layouts. A description of what short codes are is at the bottom of this page.

Halves

layout classes=”halves”

first
second

Thirds

layout classes=”thirds”

Three across

first
second
third

layout classes=”thirds”

One-third, two-thirds on desktop (small stacks first on mobile)

two-thirds

layout classes=”thirds flip”

One-third, two-thirds on desktop (wide stacks first on mobile)

two-thirds

layout classes=”thirds”

Two-thirds, one-third on desktop (wide stacks first on mobile)

two-thirds

layout classes=”thirds flip”

Two-thirds, one-third on desktop (small stacks first on mobile)

two-thirds

Fourths

layout classes=”fourths”

Four across

first
second
third
fourth

layout classes=”fourths”

One-fourth, three-fourths on desktop (small stacks first on mobile)

one-fourth
three-fourths

layout classes=”fourths flip”

One-fourth, three-fourths on desktop (wide stacks first on mobile)

one-fourth
three-fourths

layout classes=”fourths”

three-fourths, one-fourth on desktop (wide stacks first on mobile)

three-fourths
one-fourth

layout classes=”fourths flip”

three-fourths, one-fourth on desktop (small stacks first on mobile)

three-fourths
one-fourth

Fifths

layout classes=”fifths”

Five across

first
second
third
fourth
fifth

layout classes=”fifths”

One-fifth, four-fifths on desktop (small stacks first on mobile)

one-fifth
four-fifths

layout classes=”fifths flip”

One-fifth, four-fifths on desktop (wide stacks first on mobile)

one-fifth
four-fifths

layout classes=”fifths”

Two-fifths, three-fifths on desktop (small stacks first on mobile)

two-fifths
three-fifths

layout classes=”fifths”

Three-fifths, two-fifths (wide stacks first on mobile)

three-fifths
two-fifths

layout classes=”fifths flip”

Three-fifths, two-fifths (small stacks first on mobile)

three-fifths
two-fifths

layout classes=”fifths”

Four-fifths, one-fifth on desktop (wide stacks first on mobile)

four-fifths
one-fifth

layout classes=”fifths flip”

Four-fifths, one-fifth on desktop (small stacks first on mobile)

four-fifths
one-fifth

Sixths

layout classes=”sixths”

Six across

first
second
third
fourth
fifth
sixth

layout classes=”sixths”

One-sixth, five-sixths on desktop (small stacks first on mobile)

one-sixth
five-sixths

layout classes=”sixths flip”

One-sixth, five-sixths on desktop (wide stacks first on mobile)

one-sixth
five-sixths

layout classes=”sixths”

five-sixths, One-sixth on desktop (wide stacks first on mobile)

five-sixths
one-sixth

layout classes=”sixths flip”

five-sixths, One-sixth on desktop (small stacks first on mobile)

five-sixths
one-sixth

‘Kitchen Sink’ demo of special cases

layout classes=”thirds callout kiss”

Three across

first
second
third callout

Multi-column lists

  • Instead of putting lists in PODS,
  • give the lists themselves the class you would ordinarily give the PODS.
  • They still go inside LAYOUTS,
  • but we skip the PODS to avoid a gap on mobile.

What is a shortcode?

A shortcode is a WordPress-specific code that lets you do nifty things with very little effort. Shortcodes can embed files or create objects that would normally require lots of complicated, ugly code in just one line. Shortcode = shortcut. See this page for a list of the default shortcodes that come with WordPress.

We have also set up some custom shortcodes to help with laying out the site.

Shortcodes for layouts

LAYOUT class names are descriptive of the number of PODs (‘denominator’) contained in the LAYOUT. For example, thirds.

Class names of the PODs within each LAYOUT either indicate their position in the containing LAYOUT, or the widrth (‘numerator’) it takes up in desktop layout mode. For example, first or three-fourths.

Put your internal PODs in the order you wish them to appear on desktop. For example, if you want a two-thirds, one third layout, put pod classes="two-thirds"before pod classes="one-third". If you want a one-thirds, two-thirds layout, put pod classes="one-third" first.

If you want to reverse the order in which the internal divs stack on mobile, add a class of flip to the containing LAYOUT, like so: layout classes="layout thirds flip".

  • Add a class of callout to any POD to change its background color, like so: layout classes="callout halves" to change the whole section, or pod classes="first callout" to change just that portion of the layout.
  • Add a class of kiss to any LAYOUT to renove margins of its PODs, like so: layout classes="layout callout kiss halves". See the bottom of the page for a demo of the ‘Kitchen Sink’.