Block Editor

Block Editor Template Preview

4 min read

Before you assign a template to a live notification, preview it to see how tags, images, and buttons look with sample data. Notifal replaces placeholders like {product_name} so you are not staring at empty braces.

This guide covers front-end preview for Block Editor templates. For HTML Builder preview, see Creating a Template with the HTML Builder. For Elementor, see Creating a Template with Elementor.

Why preview matters

Without previewWith preview
Tags show as {product_name}Tags show sample text like "Sample Product"
Featured Image may look emptyA sample product or post image appears
Button links untestedButtons render with realistic markup

Preview does not publish the notification. It only shows the template design.

How to open a template preview

  1. Go to Notifal → Templates.
  2. Find your block editor template in the list.
  3. Click Preview (or the preview link on the template row).

Notifal opens a standalone preview page on your site:

  • No theme header or footer (clean view of just the notification)
  • Sample data filled in for tags and images
  • Styles and scripts loaded the same way as on the live site

You must be logged in as a user who can edit templates. Draft templates can be previewed before publish.

What sample data is used

Notifal analyzes tags in your template and picks realistic sample content:

Tags in templateSample data loaded
{product_name}, {product_link}, etc.A sample product from your store
{order_meta__billing_city}, order tagsA sample order
{post_title}, post tagsA sample blog post
{page_title}, page tagsA sample page
{cart_total}, cart tagsSample cart values (if WooCommerce is active)
{user_first_name}, user tagsYour user account or a sample user

If real data is missing, Notifal uses friendly fallbacks (for example "Sample Product" or "John") so the layout still makes sense.

Featured Image in preview

If Featured Image is set to Preview Image Source: Auto, the preview image follows the same rules as the live site:

  • Product tags in the template → sample product image
  • Post tags → sample post featured image

Change Preview Image Source in the block sidebar to force a specific type while designing.

Preview vs live notification

AspectTemplate previewLive notification
PurposeCheck design and tagsShown to real visitors
DataSample or random recordsContent source filters and live context
Timing rulesNot appliedDelay, exit intent, frequency apply
Display rulesNot appliedPage and user targeting apply
StatusTemplate draft or publishNotification Status must be on

Always test the full notification on your site after assigning the template. See Understanding Notification Status.

In-editor view

While editing in the Block Editor, you also see a canvas preview inside WordPress. Tags may be processed there too, depending on the block.

For the most accurate check (especially for Featured Image and button markup), use the front-end Preview link from the Templates list.

Preview for other builders

The same preview system works for all template types:

BuilderPreview behavior
Block EditorRenders blocks + replaces tags with sample data
HTML BuilderRenders HTML + class placeholders + sample tags
ElementorLoads Elementor frontend styles + sample tags

Elementor-specific tips: Elementor and Notifal Compatibility.

Troubleshooting

ProblemThings to check
Preview page is blankSave the template first; confirm Template Container has content
Tags still show {braces}Enable tag category in Settings → Tags; confirm tag spelling
Wrong sample imageChange Featured Image Preview Image Source or add product tags to template
Preview asks to log inLog in as an administrator or editor with template access
Styles look different liveNotification Appearance settings (position, animation) apply only on live notifications

Checklist

  • [ ] Saved template before preview
  • [ ] Opened Preview from Notifal → Templates
  • [ ] Confirmed tags show sample text, not raw {tag} names
  • [ ] Featured Image and Action Button look correct
  • [ ] Assigned template to notification and tested live with Status on

What to read next

Block Editor series

  1. Creating a Template with the Block Editor
  2. Notifal Gutenberg Blocks Reference
  3. Block Editor Template Preview (you are here)

Other template editors