Block Editor

Notifal Gutenberg Blocks Reference

5 min read

Notifal adds five blocks to the WordPress Block Editor. They appear in the Notifal category when you edit a template under Notifal → Templates.

These blocks only show for Notifal templates, not for regular posts or pages.

New to block templates? Start with Creating a Template with the Block Editor.

The HTML Builder and Elementor offer the same features with classes or widgets. See HTML Builder: Buttons, Close Icon, and Click Tracking or Notifal Elementor Widgets Reference.

Block overview

BlockWhat it does
Template ContainerOuter frame for the whole notification
Featured ImageShows product, post, or page image from live data
Action ButtonMain button (shop link, copy code, close, add to cart)
Close IconDismiss button for the notification
IconCustom SVG graphic (stars, checkmarks, etc.)

Template Container

The root wrapper for every block editor template. It is inserted automatically when you create a new template.

Layout presets

When you first add the container, pick a starting layout:

  • 2 Columns: split ratios like 50/50, 30/70, 75/25
  • 3 Columns Equal
  • Single Row
  • Group Container
  • Empty Canvas

After choosing a preset, add blocks inside the columns or groups.

Sidebar panels

PanelControls
GeneralColumn count, flex direction, alignment
DimensionWidth (full or custom), min/max height
PaddingInner spacing (desktop, tablet, mobile)
BackgroundSolid color, gradient, or image
BorderBorder style, radius, color
Box ShadowDrop shadow
Custom CSSExtra CSS for advanced styling
Tip: Empty columns are highlighted in the editor so you know where to click and add blocks.

Featured Image

Shows the main image tied to the notification's data (for example the product in a recent purchase alert).

You do not upload a fixed product image for live notifications. Notifal picks the image from the content source at display time.

Key settings

SettingOptions
Preview Image Source (editor only)Auto, Post, Page, Product (Product needs WooCommerce)
Image ResolutionThumbnail, Medium, Large, Full
AlignmentLeft, center, right
Width / HeightResponsive sizing
Border and shadowVisual styling
Object fitCover, contain, etc.
Lazy loadOn or off
Force transparent backgroundRemoves background behind the image

Preview Image Source: Auto

Notifal detects which image to show based on tags in your template:

  • Product or order tags → product image
  • Post tags → post featured image
  • Page tags → page featured image

Action Button

The main call-to-action. Default label is Buy now. You can change the text and add tags like {product_name}.

Link Type options

Link TypeWhat happens when clicked
Post Link (default)Opens the product, post, or page from the notification's content source
Copy TextCopies your text to the visitor's clipboard
Custom LinkOpens any URL you enter
Close NotificationDismisses the notification
Custom TriggerShows or hides page elements using CSS selectors (e.g. #signup-form)
Ajax Add to CartAdds the product to WooCommerce cart without leaving the page

Ajax Add to Cart options (WooCommerce only):

  • Quantity (1 to 99)
  • After adding: stay on page, go to cart, or go to checkout
  • Success message text
  • View Cart Link styling

Style settings

  • Typography, text color, background (solid or gradient)
  • Border, padding, border radius, box shadow
  • Hover colors
  • Optional icon (upload image, left or right)
  • Alignment and full-width toggle

Clicks are tracked automatically for OnPage Analytics.

Close Icon

Lets visitors dismiss the notification. Close events are tracked in analytics.

Settings

SettingDefault
Icon styleBuilt-in X icon, or upload a custom image
AlignmentRight (common for top corner placement)
SizeResponsive
ColorNormal and hover
BackgroundSolid or gradient
Border, padding, shadowVisual styling

The block is keyboard accessible with a "Close Notification" screen reader label.

Icon

A decorative SVG icon block for badges, stars, checkmarks, or custom graphics.

Settings

SettingPurpose
SVG codePaste your SVG markup in the sidebar
SizeResponsive
Primary colorTints the SVG
Background, border, padding, shadowFrame the icon

Use standard WordPress heading or image blocks if you prefer simpler content.

Dynamic tags in blocks

Tags work in:

  • Paragraph and heading blocks
  • Action Button text (RichText field)

Insert tags via the Notifal Tags sidebar: click to copy, then paste.

Enable categories under Notifal → Settings → Tags. Store tags: WooCommerce Setup for Notifal.

Block vs HTML Builder vs Elementor

FeatureBlock EditorHTML BuilderElementor
Featured imageFeatured Image blocknotifal-post-feature-image classFeatured Image widget
ButtonAction Button blocknotifal-action-button classAction Button widget
CloseClose Icon blocknotifal-close-button classClose Icon widget
LayoutTemplate Container columnsCustom HTML/CSSElementor sections

Checklist

  • [ ] Template Container layout chosen
  • [ ] Featured Image set to Auto or a specific preview source
  • [ ] Action Button Link Type matches your goal
  • [ ] Close Icon placed in a corner
  • [ ] Tags pasted into text and button labels

What to read next

Block Editor series

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

Other template editors