Back

FX Shortcodes

FX Shortcodes — samples & attribute coverage

Types: cover, group / section, columns + column, details / accordion, media-text / mediatext, button, card, spacer, separator / hr, line / colored-line, sticky / note. Legacy [sticky] shortcode is listed at the end.

How it reads on the site: For every sample, the rendered layout appears first (real shortcodes). The textarea under it is copy-ready text with encoded brackets so it never runs as shortcode inside the field.

Table of contents

Back to top


Common attributes

Usable on almost every [element type="…"] wrapper: class, id, tag (allowed: div, section, article, aside, header, footer, main, nav, figure), width (full → alignfull, wide → alignwide, or any CSS length), align (left | center | right), vertical-align (top | center | bottom), background (image URL), background-color, color or text (same effect), padding, margin, gap, border-radius or radius, shadow (box-shadow), min-height, height (often maps to min-height on cover), max-width.

Sample — common set on group

Uses id, class, tag, width, align, vertical-align, colours, spacing, radius, shadow, max-width.

Sample — background image + focal on section

Group/section accept background + focal like cover.

TOC · Top


Cover

Specific: background, overlay, overlay-opacity (0–1, default 0.5), parallax (1 / 0), focal, height / min-height, plus common + width full/wide.

Full hero — image, overlay, focal, button

Cover headline

Overlay + focal + nested button.

Contact

Parallax background

Parallax uses parallax="1".

Colour-only cover (no image)

No background image

Wide alignment (not full bleed)

width="wide" → theme alignwide.

TOC · Top


Group / section

Specific: layout — omit / default (block), flex, grid. With flex: justifystart, center, end, space-between, space-around. Plus all common attributes.

Block group (default layout)

Default layout

Stacked block content.

Flex — justify="space-between", vertical-align="center"

Left
Flex row

Action

Flex — justify="space-around"

ABC

Flex — justify="end"

Grid layout

North

Cell A

East

Cell B

South

Cell C

West

Cell D

TOC · Top


Columns / column

On columns: columns (count), stack (1 collapse on narrow / 0 keep row), gap, width, vertical-align, common styles.

On column: span (flex-basis e.g. 33%, 320px), vertical-align, common styles.

Two equal columns

Left

Column one.

Right

Column two.

Four columns, stack="0" (stay side‑by‑side on small screens)

I
II
III
IV

Asymmetric — span on columns

Narrow sidebar (span="35%").

Main column (span="65%").

TOC · Top


Details / accordion

Specific: summary (label), open (1 expanded / 0 collapsed). Types details and accordion are the same renderer.

Closed + open variants

Closed panel (default open=0)

Hidden until opened.

Open on load

open="1" — expanded initially.

Stack with width + styling

First question
Answer one.
Second question
Answer two.

TOC · Top


Media & text

Specific: media, media-alt, media-position (left | right), media-width (CSS; empty or 50% → equal 1fr/1fr), stack (1/0), crop (1 = object-fit cover height). Aliases: mediatext.

Default (equal columns), image left

Demo

Beside image

Equal columns when media-width omitted.

media-position="right", media-width="40%"

Image on the right

Narrower media track.

crop="1" — fill text column height

Cropped image

Image column matches text height (object-fit: cover).

Alias mediatext

Wide

Same as media-text.

TOC · Top


Button

Specific: url (absent → <button type="button">), target, rel (empty + target="_blank"noopener noreferrer), stylefill | outline | text, sizesmall | (default) | large, background-color, color or text, border-radius / radius, padding. Global: class, id.

Styles + sizes

External link — auto rel for target="_blank"

Custom rel override

Real <button> (no url)

Colours, radius alias, padding

color vs text (equivalent)

TOC · Top


Card

Specific: image, image-alt, title (<h3>), url (wraps entire card in a link), target, rel. Plus common + tag (default article).

Image + title + body

Featured

Card title

Body markup inside the card.

Whole-card link

No image — tag="figure", width, styling

Quote card only

Text-only card with custom wrapper tag.

Three-up cards in columns

TOC · Top


Spacer (void)

Specific: directionvertical (default) | horizontal. Vertical: height (default 2rem). Horizontal: width (default 1rem).

Vertical gap

Horizontal inline gap

Before after

Horizontal spacer inside flex row

Left

Right

TOC · Top


Separator / hr (void)

Specific: styledefault | wide | dots | dashed | double. color or text. widthfull, wide, or CSS length. align — left | center | right. margin, max-width. Alias: hr.

Variants






Width keywords + numeric + align + colour + margin



TOC · Top


Line / colored-line (void)

Specific: stylestriped | dotted | shade. height, width, padding (outer, default 32px 0), background-color inner bar, color/text (currentColor for striped/dotted), align left | center | right. Alias: colored-line.

Striped, dotted, shade

Solid bar via background-color

Alias + left align

TOC · Top


Sticky / note

Specific: rotate, aspect-ratio, shadow1 for default sticky shadow or any CSS box-shadow string. Plus common styles; width full/wide applies. Alias: note.

Default-style sticky

Square-ish post-it with preset shadow flag.

Custom shadow string + alias note

Custom box-shadow value.

Wide sticky with width

Wider alignment class on wrapper.

TOC · Top


Composite nesting

Demonstrates nested [element] parsing (innermost-first).

Nested layout


TOC · Top


Legacy [sticky] shortcode

Registered separately (FX Builder migrations). Alias attributes: bg-colorbackground-color, text-colorcolor, etc.

Legacy attribute names.

Pagespeed Optimization by Lighthouse.