Skip to content
CoverKit CoverKit v0.1.13

Sandbox

The Sandbox use case is CoverKit’s reference built-in for the template editor. It exercises the full mapping pipeline, live preview while editing, and every built-in settings control type. It does not register front-end hooks (no Open Graph meta tags, no thumbnail replacement, and no other public output).

Use Sandbox to validate layouts and field mappings safely. For production outputs, enable Open Graph image or Featured image instead.

  • Editor testing — check layout and mappings with live preview before turning on public outputs
  • Extension development — study a complete settings schema and mapping catalog when building custom use cases
  • Training — walk editors through controls without affecting the live site
NeedUse
Social / link preview meta tagsOpen Graph image
WordPress featured / post thumbnailsFeatured image
Custom front-end behaviorCustom use cases
Recommended size300 × 300 px (square, cropped)
FormatsJPG and WebP are recommended

If your template canvas is not square, output is still scaled and cropped to the recommended square. Match proportions or use Match aspect ratio in the use case panel to reduce unexpected cropping.

Sandbox merges shared image settings, post-type controls, and use-case-specific fields so you can see every built-in control type in the editor.

SettingControlPurpose
FormatSelectOutput file format (PNG, JPG, WebP, GIF).
QualityRangeJPG quality (shown when format is JPG).
Post typesCheckbox listWhich content types are included when resolving preview data (defaults to Post).
Posts list previewToggleSmall preview on the posts list for selected post types (when enabled).
Alt textTextAlt text for the preview image.
CaptionTextareaOptional caption text where the UI supports it.
Show borderToggleDraw a border around the preview.
Include metadataCheckboxInclude extra metadata in sandbox output when enabled.
Front pageToggleAllow this assignment on the front page (separate from the post type list).
Archives and searchToggleAllow this assignment on archives and search (not singular, not the front page).
  • Required: Post title → map to a text layer.
  • Recommended: Featured image, Post link, Post excerpt, Author, Site logo — map when your design uses them.

Configure mappings in the use case sidebar using Select layer. See How to configure use cases.

The Sandbox implementation also demonstrates per-use-case field formatting via the coverkit_use_case_sandbox_format_field_value filter (for example, a demo prefix on Post date when that source is mapped).

  1. Enable Sandbox on the template and save.
  2. Map Post title (and other fields you need).
  3. Confirm the live preview updates while you edit mappings and settings in the CoverKit sidebar.

If the preview looks outdated after design changes, clear the template cache.