Slowly
The builderBlocks

Fragment

Drop a reusable, conditional global fragment exactly where you place the block.

A fragment is a piece of layout you build once and reuse by reference. Place the Fragment block where you want it and it pulls in a global fragment you have defined, so a shared piece of design lives in one place and appears wherever you drop it.

Fragments can be conditional, shown or hidden by the rules you set, which makes them useful for things that vary by context, a members-only banner, a notice that only guests see, a promo that only appears when certain conditions are met.

Fragments are managed in the Themer, alongside templates and parts.

Adding one

  1. Select the section or container to hold it.
  2. Open the inserter and search "fragment".
  3. Pick the Fragment block, then choose a fragment from the dropdown in its settings panel.

Settings

In the fragment's own panel. The shared design panel is described in Styling.

SettingWhat it doesReach for it when
FragmentWhich global fragment to render hereAlways; the block shows nothing until a fragment is selected
Hide when logged inHides the fragment from authenticated usersGuest-only content, a login prompt you want to vanish once someone signs in
Hide when guestHides the fragment from visitors who are not logged inMembers-only content, a dashboard notice only registered users should see
ConditionsOne or more rules that must be met for the fragment to show; AND requires all to match, OR requires any oneContext-specific content that depends on post type, taxonomy, query variables, or other dynamic values

Styling

The fragment itself carries its own design; the Fragment block is a transparent wrapper. Any spacing, visibility overrides, or positional adjustments at the placement level use the shared design panel. State-based visibility rules belong in the conditions settings above rather than in CSS.

Accessibility

The fragment renders exactly what its source contains, so accessibility depends on how each fragment is built. If a fragment holds an image, that image needs alt text. If it holds a navigation landmark or a heading, the heading level should fit the page outline at the point of insertion, not just the fragment in isolation. Check the rendered output in context, not only in the Themer.

On this page