gillish

Start a section with a heading and a label

The Section heading block A piece of a page, such as a paragraph, a picture or a button. In WordPress you build a page by putting blocks one after another. starts a section of a page: a heading with an optional small label above it, a line under it and a short text below, all aligned together. For example the label Pricing above the heading Plans for every team, and a sentence under it. See it working on the Section heading page.

Add a section heading

  1. Add the Section heading block where the section starts.

  2. Type the label, the heading and the text straight into the block. Leave the label or the text empty if you do not want one.

  3. In the Settings tab, choose the Heading level, the Line and the Alignment.

While you type the heading, its toolbar has Bold, Italic, Link and More, WordPress’s own menu. A word you colour with WordPress’s own Highlight keeps its colour on the page, so one word can stand out.

The settings

The Section heading panel lists, in this order:

  • Heading level: H1 to H6, H2 to start. Use H2 for a section of the page, and one level below for a section inside it. A page has one H1, usually its title.
  • Read the label as part of the heading: off to start. See below.
  • Line: None (the default), A short bar under the heading, A line under the heading or A short bar before the label.
  • Alignment: Start (the default) or Centre, for every part at once.

The label and screen readers

People who use a screen reader A program that reads the screen aloud, for people who cannot see it well. They move around the page with the keyboard and hear what is there. often jump through a page by its list of headings. Read the label as part of the heading decides what that list says. On the page, the label stands on its own line above the heading either way.

  • Off (the default): the label is a line of its own above the heading. The list of headings reads the heading alone, for example “Plans for every team”.
  • On: the label is the heading’s first words. The list of headings reads, for example, “Pricing: Plans for every team”.

Lines and alignment

  • A short bar under the heading: a bar 48 pixels wide and 3 pixels high, in the text colour.
  • A line under the heading: a thin line across the whole block.
  • A short bar before the label: a bar 24 pixels wide and 2 pixels high, on the label’s line. It needs a label: with no label, no bar shows, and the panel says “Write a label to see the bar.”

Screen readers skip the lines and bars. Centre centres the label, the heading, the line and the text together. In both alignments the text under the heading stops at a comfortable width, about 38 times its letter size, so a long sentence does not run across a wide section.

Style each part

Style the block in a saved Cairnstone block, under Cairnstone → Blocks. Pick the part to style: Label, Heading, Text or, when a line is on, Line. Then set its colour, its typography and the rest in the Styles tab. Each part keeps its own look on the page, for example a red label, a blue heading in a heavy weight and a green text.

The Section heading block loads no script on the page.

Next, read Let readers share a page.

Trails

Cairnstone