-
-
Notifications
You must be signed in to change notification settings - Fork 1
Block Variations
Aegis registers custom block variations that extend WordPress core blocks with specialized functionality. Block variations appear as distinct block types in the inserter but are built on top of existing core blocks.
A block variation is a preconfigured version of an existing block with specific attributes, inner blocks, or settings preset. They appear as their own entries in the block inserter, making specialized layouts discoverable and easy to use.
Unlike custom blocks, variations do not require additional JavaScript or PHP — they leverage the existing core block infrastructure.
| Variation | Base Block | Description |
|---|---|---|
| Accordion List | core/list |
An expandable list where items collapse and expand. |
| Counter | core/paragraph |
An animated number counter that counts up on scroll. |
| Curved Text | core/paragraph |
Text rendered along a curved SVG path. |
| Grid | core/group |
A CSS Grid container with configurable columns. |
| Marquee | core/group |
Continuously scrolling horizontal content. |
| Newsletter | core/group |
Pre-configured email signup section. |
| Related Posts | core/query |
A Query Loop preset filtered to related content. |
| SVG | core/group |
A container for inline SVG markup. |
An interactive list where each item can be expanded to reveal additional content.
core/list with custom attributes and JavaScript interaction.
- Click any list item to expand its content.
- Smooth animated open/close transitions.
- Optional exclusive mode (only one item open at a time).
- Full styling control via List block settings.
- Accessible ARIA expanded/collapsed states.
- Insert the Accordion List block from the inserter.
- Add list items with your heading text.
- Each item expands to show content below it.
- Configure behavior in block settings (exclusive mode, initial state).
| Feature | Accordion List | Toggle Block |
|---|---|---|
| Structure | List-based | Container-based |
| Content flexibility | Text-focused | Any blocks |
| Best for | Simple FAQ items | Complex expandable sections |
An animated number that counts up from zero to a target value when the element scrolls into view.
core/paragraph with custom attributes and intersection observer script.
- Configurable target number.
- Animated counting effect triggered on scroll.
- Customizable duration and easing.
- Optional prefix and suffix (for example, "$" or "%").
- Thousand separator formatting.
- Only animates once (first time visible).
- Insert the Counter block.
- Enter the target number.
- Optionally set a prefix (such as "$") or suffix (such as "+").
- Configure the animation duration.
- Style using standard Paragraph block controls.
- Statistics sections ("10,000+ customers")
- Achievement highlights ("99% uptime")
- Pricing displays ("$49/month")
Text rendered along a circular or curved SVG path for decorative headings and badges.
core/paragraph with SVG path rendering.
- Text follows a configurable arc.
- Adjustable curve radius and direction.
- Repeating text option for full circles.
- Font size and family controls.
- Responsive sizing.
- Accessible — original text remains in the DOM for screen readers.
- Insert the Curved Text block.
- Enter your text content.
- Adjust the curve radius and direction in block settings.
- Style with color and typography controls.
A CSS Grid container that arranges child blocks into a configurable grid layout.
core/group with grid layout attributes.
- Configurable column count (1–6).
- Configurable minimum column width for auto-fit behavior.
- Gap control using the spacing scale.
- Items automatically flow into the grid.
- Responsive — columns reduce on smaller viewports.
- Insert the Grid block.
- Add child blocks (cards, images, or any content).
- Configure columns count or minimum width.
- Adjust gap spacing.
- Items fill the grid automatically.
| Feature | Grid | Columns |
|---|---|---|
| Equal height items | Yes (automatic) | Manual |
| Auto-flowing content | Yes | No (fixed structure) |
| Dynamic item count | Yes | Fixed at creation |
| Best for | Card layouts, galleries | Fixed multi-column sections |
A continuously scrolling horizontal band of content that loops infinitely.
core/group with CSS animation and cloned content.
- Continuous horizontal scroll animation.
- Configurable speed and direction.
- Pause on hover option.
- Content duplicated for seamless loop.
- Accessible — can be paused, respects
prefers-reduced-motion.
- Insert the Marquee block.
- Add content (logos, text, images, or any blocks).
- Set the scroll speed and direction.
- Enable or disable pause on hover.
- Client logo bars
- News ticker strips
- Decorative text banners
- Testimonial scrollers
A pre-configured email signup section with input field, submit button, and supporting text.
core/group with pre-arranged inner blocks.
- Ready-to-use email signup layout.
- Integrates with form plugins (Fluent Forms, or custom endpoints).
- Customizable heading, description, and button text.
- Responsive layout (stacks on mobile).
- Style variation support.
- Insert the Newsletter block.
- Customize the heading and description text.
- Configure the form action (connect to your email service).
- Style using Group block controls.
A Query Loop variation preconfigured to display posts related to the current content.
core/query with taxonomy-based filtering.
- Automatic filtering by shared categories and tags.
- Configurable post count.
- Excludes the current post.
- Grid or list layout.
- All Query Loop display options available.
- Insert the Related Posts query variation.
- The block automatically queries related content.
- Configure the number of posts and layout.
- Customize the post template (title, excerpt, thumbnail).
Note: This is distinct from the
aegis/related-postscustom block, which uses its own rendering logic. The query variation leverages core Query Loop infrastructure.
A container for inserting inline SVG markup directly into the editor.
core/group with SVG content support.
- Paste or write SVG markup directly.
- SVG rendered inline (not as an image) for CSS styling.
- Color inheritance from parent text color.
- Size controls (width, height).
- Accessible
roleandaria-labelattributes.
- Insert the SVG block.
- Paste your SVG code into the content area.
- Adjust dimensions in block settings.
- Colors can be controlled via the parent block color settings if the SVG uses
currentColor.
Block variations appear in the block inserter alongside regular blocks:
- Open the block inserter (+).
- Search for the variation name (for example, "Counter" or "Marquee").
- Click to insert.
Some variations also appear under their parent block in the inserter hierarchy.
- custom-blocks — Blocks built specifically for Aegis.
- enhanced-core-blocks — Additional styling for core blocks.
- block-patterns — Pre-built layouts using variations.
- svg-icons — Using SVGs with the icon system.
Aegis version 1.0.0 | GitHub Repository | Report an Issue | Atmostfear Entertainment
License: GPL-2.0-or-later