Skip to content

Patterns and block styles

Patterns are ready-made arrangements of blocks. You insert them with the block inserter (tab Patterns) and then change text, images and colors like in any other block. All patterns are listed under Appearance → Editor → Patterns.

Block inserter, Patterns tab

Patterns for whole pages

WordPress offers these patterns in the Choose a pattern window when you create a new, empty page. Ahoi offers them in this order; the window shows them in columns, without categories. Each brings its own main heading and suits the Page without title template.

Pattern Content
Home page hero with image, three promises, latest posts, call to action band (Setting up the home page)
About us introduction, image with text, three numbered values, contact
Shop start page only with wpShopGermany, see With wpShopGermany
Contact address, phone, email and opening hours next to an image, followed by frequently asked questions. With wpShopGermany, the pattern takes the address, phone and email from the shop information when you insert it.
Frequently asked questions questions in three groups that open and close, and a band for questions that remain open
Shipping and payment table of shipping costs and delivery times, payment methods as cards
Promotion only with wpShopGermany, see With wpShopGermany
Services six cards, three numbered steps, a band for enquiries
Team four people with photo, name, role and a sentence, a band for applications
Shop categories only with wpShopGermany and its Produktartikel module, see With wpShopGermany

Text in square brackets such as "[Phone number]" is a placeholder; the drawings are image placeholders (see below).

Shipping and payment contains no legal text

The pattern only provides the layout. You enter prices, delivery times, payment methods and conditions yourself; they must match what your shop actually charges and offers.

In the block inserter, "Frequently asked questions" is also in the FAQ category, together with the section of the same name.

Patterns for sections

Pattern Category Content
Hero with image Banners eyebrow, large heading, text, two buttons, space for an image
Changing hero Banners three versions of the hero with image; each page view shows one of them (Changing content)
Three promises Text three short statements with a short line in the accent color, on a tinted background
Frequently asked questions FAQ, Text heading and questions that open and close ("Accordion" block)
Call to action band Call to action band in the accent color with heading, text and button
Latest posts Posts the three latest posts as cards
Customer voices Testimonials three short quotes as cards with name and place. Quote customers only with their permission.
Products, Product in focus, Shop categories Shop only with wpShopGermany, see With wpShopGermany

Header and footer have patterns of their own, see Header and footer.

Image spaces: Where a pattern has an image, there is a drawing that comes with Ahoi: a sailing boat, a lighthouse, a message in a bottle or portholes. Select the image, click Replace in the toolbar and choose your image; give it an alternative text. The drawings are part of the theme. A page refers to the file in Ahoi; after switching to another theme the image is missing there.

Buttons: The buttons in the patterns have no target yet. Set a link for each, otherwise it is not a link for visitors.

Section styles

Groups and columns can be colored with one click: select the block and choose one of the section styles under Styles in the sidebar. Text, links and buttons inside adapt, in light and dark.

Section styles of a group

Style Effect
Light page background
Tinted the "Surface" color, slightly set off
Coral the accent color of the palette as background; keeps this name with other palettes
Dark dark band like the footer

Block styles

Style For block Effect
Eyebrow Paragraph, categories small capitals in the accent color, for example above a heading
Label Paragraph small rounded label in the accent color, for example for "New"
Card Group "Surface" color with rounded corners and padding
Pills Tags tags as rounded labels
Short line Separator short, thick line at the left edge; you choose its color on the block
One at random Group shows one of the blocks in the group at random on each page view, see below
Light mode only, Dark mode only Image, Site Logo the image appears only in light or only in dark mode (Light and dark)

There is also the Outline style for buttons from WordPress itself.

Changing content

With the One at random style on a group, the page shows exactly one of the blocks placed directly in the group, chosen at random on each page view. This way, for example, the hero of the home page changes between several versions. The Changing hero pattern (category "Banners") comes with three versions.

  1. Select the group and choose One at random under Styles on the right.
  2. Place each version as a block of its own directly in the group, for example a group or a Cover block each.
  3. Save.

With the Changing hero pattern the style is already set. WordPress keeps an inserted pattern together: you change texts and images directly. You can add or remove a version only after choosing Edit pattern in the toolbar.

Changing hero in the editor, style "One at random"

  • If the group is the hero of the page, every version needs its own main heading (H1). Visitors only ever see one version, and so only one H1.
  • In the editor all versions are shown one below the other, separated by a dashed line.
  • A block has only one style. With One at random, the same group can no longer have a section style such as Coral or Dark. If the versions should be colored, give the section style to the individual versions inside the group.
  • When logged in with the right to edit posts, you see a particular version by adding ?ahoi_random=2 to the address of the page; the number is the number of the version.

With a page cache, the version changes less often

If the site uses a page cache, for example a caching plugin or the host's cache, visitors see the same version until the cache rebuilds the page. Only then does a new random version appear.

Images

Images can be enlarged with a click. Ahoi turns this on for all Image blocks; for a single image, turn it off in the toolbar under the link icon with Enlarge on click.