Canvas variants

One canvas, many designs.

Variants are child designs that live under a single canvas. Each one gets a human-readable slug, and appending ?_variant=slug to the canvas URL swaps the whole design: same dynamic fields, same size, zero integration changes.

  • Swap designs by editing one query parameter
  • Every variant keeps the same dynamic-field contract
  • Unknown or renamed slugs fall back to the base design, never a 404
  • Cached per variant, so every design stays fast on the CDN

Abandoned cart banner family

5 designs, one canvas
Amber abandoned cart banner rendered from the same canvas with ?_variant=amber
Emerald abandoned cart banner rendered from the same canvas with ?_variant=emerald
Indigo abandoned cart banner rendered from the same canvas with ?_variant=indigo
Rose abandoned cart banner rendered from the same canvas with ?_variant=rose
Sky abandoned cart banner rendered from the same canvas with ?_variant=sky
?_variant=amber

Why teams build variants instead of new canvases.

  • One URL to edit

    The public render URL stays the parent canvas's. The only change is the ?_variant={slug} query parameter, so swapping designs means editing one word in a link.

  • One dynamic-field contract

    A new variant starts as a copy, so it carries the same dynamic fields as the design it came from. An integration that passes ?title= to one design can pass it to any of them.

  • One family to manage

    Publish status is shared across the family, variants are edited and deleted from the parent's editor, and every save keeps each image URL and its cache stamp in sync.

From one design to a whole family.

The whole flow happens in the canvas editor and takes a few minutes per variant.

  1. Design the base canvas

    Start from a template or a blank canvas and build the canonical design: the one that renders whenever a URL carries no variant. Mark the layers your data should control as dynamic fields.

  2. Add a variant and give it a slug

    Click Add Variant in the switcher above the stage, choose where to start from, and name the slug, for example holiday. The editor lands directly on the new variant, ready to restyle.

  3. Restyle it with the full editor

    Each variant opens in the same editor, with the same layers panel, fonts, and sizes. Change the background, a badge, or the whole layout while the dynamic fields stay put.

  4. Swap designs with ?_variant=

    Append _variant with the slug to the canvas URL. Dynamic overrides compose with it, so ?_variant=holiday&title=Now+live renders the holiday design with your title.

One canvas id, every design.

The canvas URL stays the same. Only the slug changes.

Base design

https://cdn.ogdynamic.com/c/{canvas-id}

Variant by slug

https://cdn.ogdynamic.com/c/{canvas-id}?_variant=emerald

Variant with a dynamic override

https://cdn.ogdynamic.com/c/{canvas-id}?_variant=fr&title=Bonjour

Slug rules and fallbacks.

A slug is the public handle of a variant, so it follows URL rules.

Charset

Lowercase letters, digits, - and _

Length

1 to 30 characters

It must start and end with a letter or a digit, so holiday-sale is valid and -holiday is not.

Uniqueness

Unique among the variants of its canvas

Unknown slug

Falls back to the base design

A mistyped, renamed, or deleted slug still shows an on-brand image instead of a 404.

Renaming

Takes effect immediately

Links using the old slug fall back to the base design, so treat published slugs as part of your URL contract.

Size and status

Inherited from the base canvas

Variants share the base dimensions, and publishing or unpublishing the base applies to the whole family.

Where variants pay off.

  • Multilingual images

    One design family, a variant per language. Your email platform's language merge tag becomes the slug in the URL, and every locale gets its own layout.

  • Status-driven banners

    A variant per order step: preparing, shipping, delivered. The integration picks the slug from the order status, so the banner updates itself on every reopen.

  • Seasonal campaign swaps

    Keep one embedded canvas id and swap designs per season or promotion: blackfriday, holiday, spring-sale. No integration edits, ever.

  • Design A/B tests

    Send part of an audience to ?_variant=b and compare the clicks. Both designs share the same dynamic fields, so the test changes only the artwork.

Canvas variants questions.

Short answers to what teams ask before they start.

What are canvas variants?

Variants are child designs that live under one canvas. Each variant gets a human-readable slug, and appending ?_variant={slug} to the canvas URL renders that design instead of the base. Same dynamic fields and size, so your integration never changes, and an unknown slug falls back to the base design instead of erroring.

How is a variant different from duplicating a canvas?

A duplicate is an independent canvas with its own URL, status, and integration wiring. A variant stays inside its family: it is selected by slug on the parent's URL and inherits the base canvas's size and publish status.

What happens if a URL uses a slug that no longer exists?

The render falls back to the base design instead of returning a 404, so a renamed, deleted, or mistyped slug still shows an on-brand image. For the same reason, renaming a slug takes effect immediately.

Can variants have different dynamic fields or sizes?

Variants always share the base canvas's size. A new variant starts as a copy, so it carries the same dynamic fields as the design it was created from, and each variant decides which of its own layers stay dynamic.

Where can I use a variant URL?

Everywhere the base canvas URL works: plain image URLs, the WordPress plugin, the email integrations, the API, and MCP. Variants can also become the frames of an animated GIF slideshow.