The HTML Builder is Notifal's visual editor for custom notification designs. You build the layout in a fullscreen workspace, add dynamic tags, preview how it looks, then save the template and assign it to a notification.
Prefer WordPress blocks or Elementor? See Creating a Template with the Block Editor or Creating a Template with Elementor.
If you are new to Notifal, start with Your First On-Page Notification to import a ready-made design first.
When to use the HTML Builder
| Situation | HTML Builder is a good fit |
|---|---|
| You want full control over HTML and CSS | Yes |
| You paste HTML from another tool or AI | Yes |
| You already use Elementor for everything | Consider Elementor instead |
| You prefer WordPress blocks | Consider the Block Editor instead |
Step 1: Open the Templates screen
- In WordPress, go to Notifal → Templates.
- Click Add New then click Create with HTML Builder.
Notifal creates a new template and opens the HTML Builder in fullscreen mode.
Step 2: Choose how to start
When the builder opens, you see a welcome screen with two paths:
| Option | Best for |
|---|---|
| I have HTML | You already have HTML code (from AI, a developer, or another tool) |
| Generate with AI | You want help writing the design first. See HTML Builder: AI Prompt Workflow |
Paste existing HTML
- Click I have HTML.
- Paste your notification HTML into the box.
- Click Load HTML.
<!DOCTYPE>, <html>, <head>, or <body> tags.Step 3: Design in the builder
The builder has three main areas:
| Area | What you do here |
|---|---|
| Left panel | Element tree. Click an item to select it, duplicate it, or remove it. |
| Canvas | Live preview of your notification. Click elements to edit them. |
| Right panel | Properties for the selected element: Style, Content, or HTML tabs |
Top toolbar actions
| Button | What it does |
|---|---|
| Back | Return to Notifal → Templates |
| Title | Rename your template |
| AI Prompt | Open the AI helper to generate HTML |
| View HTML | See or edit raw HTML code |
| Insert Tag | Open the tag picker for dynamic text like {product_name} |
| Frontend Preview | Open a preview in a new tab with sample data |
| Preview mode | Toggle preview inside the canvas |
| Save / Publish | Save your work |
The builder also auto-saves after a short idle period.
Step 4: Insert dynamic tags
Tags are placeholders Notifal replaces with live data when the notification shows (for example {product_name} or {cart_total}).
- Click Insert Tag in the toolbar.
- Browse or search for a tag.
- Click to insert it into the selected text area.
If you use WooCommerce tags, enable them first under Notifal → Settings → Tags. See WooCommerce Setup for Notifal.
Step 5: Preview your design
Before saving, check how the template looks:
- Preview mode (toolbar toggle): quick check inside the builder
- Frontend Preview (toolbar link): opens your site with sample data filled in
Sample data helps you see tags and var tags replaced even when no real order or product is loaded.
Step 6: Save or publish
- Click Save to keep the template as a draft, or Publish when you are ready.
- Notifal checks your HTML for safety and may show warnings if something was adjusted (see HTML Sanitization and Allowed HTML).
- After save, you return to the Templates list or stay in the builder depending on your action.
Step 7: Assign the template to a notification
A template on its own does not appear on your site. You link it to a notification:
- Go to Notifal → OnPage Notifications.
- Open a notification (or create one).
- In the General tab, choose your new template.
- Turn Status on when ready. See Understanding Notification Status.
Responsive preview
Use the width controls above the canvas to switch between Desktop, Tablet, and Mobile views. This helps you confirm the design fits smaller screens.
Checklist
- [ ] Opened Notifal → Templates and created a new HTML Builder template
- [ ] Loaded or built notification HTML (fragment only, not a full page)
- [ ] Added tags where needed via Insert Tag
- [ ] Previewed with Frontend Preview
- [ ] Saved or published the template
- [ ] Assigned the template to a notification and turned Status on
What to read next
HTML Builder series
- Creating a Template with the HTML Builder (you are here)
- HTML Builder: Buttons, Close Icon, and Click Tracking
- HTML Builder: AI Prompt Workflow
- HTML Builder: Layouts and Use Cases
- HTML Sanitization and Allowed HTML