Overview
HashBar integrates seamlessly with popular WordPress page builders, allowing you to insert announcement bars and other elements directly into your pages. This guide covers native blocks and shortcodes for each supported page builder.
Important Note About Announcement Bars and Popups
Important: Announcement bars and popup campaigns have their own dedicated admin panel in HashBar and do NOT need to be added via page builders. Use the HashBar dashboard to create, configure, and manage bars and popups. Page builder integration is for specific content blocks (Promo Banner, Countdown, etc.), not for managing your campaigns.
The page builder blocks described below are for adding promotional content, countdowns, and notifications to specific pages. Full-featured announcement bars and popups are managed exclusively through the HashBar dashboard.
Gutenberg (WordPress Block Editor)
Supported Gutenberg Blocks
HashBar provides 4 native blocks for Gutenberg:
1. Promo Banner Block
| Feature | Details |
|---|---|
| Purpose | Add promotional content to specific pages |
| Customization | Headline, body text, button text, colors, background |
| Link | CTA button links to any page or external URL |
| Visibility | Shows on page where block is inserted only |
2. Promo Banner with Image Block
| Feature | Details |
|---|---|
| Purpose | Promotional banner with featured image |
| Image | Upload product image, lifestyle photo, or logo |
| Layout | Image left/right or stacked options |
| Customization | Text + image styling, button |
3. Countdown Block
| Feature | Details |
|---|---|
| Purpose | Display countdown timer for limited offers |
| Configuration | Set end date/time, choose format (days/hours/minutes/seconds) |
| Styling | Customize colors, font size, background |
| Timezone | Uses site timezone (see countdown docs for details) |
4. Notification Block
| Feature | Details |
|---|---|
| Purpose | Display alert, notification, or important message |
| Types | Info, success, warning, error notification styles |
| Customization | Icon, message text, color theme |
| Interactive | Optional dismissible button |
Using Gutenberg Blocks
Adding a Block to Your Page
- Open your page in the WordPress editor (Gutenberg)
- Click the + button to add a new block
- Search for "HashBar" or the specific block name
- Click the block you want to add
- The block appears in your page
- Configure the block settings in the right panel
- Save or publish your page
Configuring a Block
- Select the block on your page
- In the right sidebar, find the block settings
- Adjust the settings:
- Text content
- Colors and styling
- Button text and links
- Image selection (for image blocks)
- Preview your changes in real-time
- Save your page
Gutenberg Block Examples
Product Promotion Block
- Block Type: Promo Banner with Image
- Headline: "Summer Collection Now Available"
- Body: "Shop the latest styles with free shipping on orders over $50"
- Button: "Shop Summer Collection" → /products/summer
- Image: Summer fashion product photo
- Result: Page-specific promotion only shows on that product page
Limited-Time Offer with Countdown
- Block Type: Countdown
- End Date: Tomorrow at 11:59 PM
- Format: Hours:Minutes:Seconds
- Label: "Sale ends in"
- Result: Live countdown shows how much time remains for offer
Shipping Notification
- Block Type: Notification
- Type: Info notification
- Icon: Truck/shipping icon
- Message: "Orders placed today ship tomorrow!"
- Result: Important info displays prominently on product pages
Elementor Page Builder
HashBar + Elementor Integration
HashBar provides full support for Elementor with custom widgets:
- Compatibility: Works with Elementor Free and Pro
- Widgets: All HashBar blocks available as Elementor widgets
- Customization: Full Elementor styling options
- Responsive: Mobile responsive out of the box
Adding HashBar Widgets in Elementor
Step-by-Step
- Open your page in Elementor editor
- Click Add Elements button
- Search for "HashBar" in the element search
- Drag the desired widget to your page section
- The widget appears in your page
- Customize in the left panel:
- Content settings
- Style options
- Advanced settings
- Preview on desktop/tablet/mobile tabs
- Click Publish to save
Elementor Customization Options
Content Tab
- Headline and body text
- Button text and link
- Image selection (for image widgets)
- Countdown date/time
- Colors and styling options
Style Tab
- Font family, size, weight
- Colors: text, background, button
- Spacing: padding, margin
- Border: style, width, radius
- Shadow and effects
Advanced Tab
- CSS classes
- Custom attributes
- Visibility conditions
- Animation effects
Elementor Tips
- Responsive Design: Test on mobile using Elementor's device tabs
- Global Widgets: Create as Global Widget for reuse across pages
- Conditional Display: Use Elementor's visibility conditions to show on specific pages
- Animations: Add entrance animations for engagement
WPBakery Page Builder
HashBar + WPBakery Integration
Full support for WPBakery (formerly Visual Composer):
- Status: Fully compatible with WPBakery
- Elements: All HashBar blocks available as WPBakery elements
- Drag & Drop: Works seamlessly with visual builder
Using HashBar with WPBakery
Adding Elements
- Open page in WPBakery visual editor
- Click Add Element button
- Search for "HashBar" elements
- Click the element you want to add
- Click Add to insert on page
- Configure element in the dialog that opens
- Click Save
Configuration
- Edit element by clicking the edit icon
- Adjust text, colors, links in the settings panel
- Preview changes immediately
- Save your page
WPBakery Best Practices
- Mobile Testing: Test responsive behavior on mobile devices
- Responsive Text: Use WPBakery's responsive text sizing
- Custom CSS: Add custom CSS classes for additional styling
King Composer Page Builder
HashBar + King Composer Integration
Full support for King Composer page builder:
- Compatibility: All King Composer versions supported
- Elements: HashBar blocks available as King Composer elements
- Drag & Drop: Native integration with visual builder
Using HashBar in King Composer
Adding HashBar Elements
- Open page in King Composer editor
- Click Add Element
- Find HashBar elements in the element library
- Drag element to your page section
- Configure using the element settings panel
- Save your page
Customization
- Click element to select it
- Adjust content and styling in the right panel
- Resize element by dragging corners/edges
- Add animations and effects
Classic Editor and Shortcodes
For Users on Classic WordPress Editor
If you're using the classic WordPress editor (not Gutenberg), use shortcodes:
Available Shortcodes
| Shortcode | Purpose | Parameters |
|---|---|---|
[hashbar_promo] | Promo banner | title, text, button_text, button_url, bg_color |
[hashbar_countdown] | Countdown timer | end_date, end_time, format |
[hashbar_notification] | Alert/notification | type, message, dismissible |
Using Shortcodes
Basic Example - Promo Banner
[hashbar_promo title="Summer Sale!" text="Save 30% on all items" button_text="Shop Now" button_url="/summer-sale"] Countdown Example
[hashbar_countdown end_date="2024-12-25" end_time="23:59" format="days,hours,minutes"] Notification Example
[hashbar_notification type="info" message="Free shipping on orders over $50!" dismissible="true"] Where to Insert Shortcodes
- Open your page in classic editor
- Click where you want the element to appear
- Paste the shortcode in the editor
- Switch to visual/preview mode to see how it looks
- Publish your page
Shortcode Generator
HashBar includes a shortcode generator to help you:
- Go to HashBar → Shortcode Generator in admin
- Select the element type
- Fill in the options in the form
- Copy the generated shortcode
- Paste into your page editor
Important Limitations and Notes
Page Builder Blocks vs. Full Features
Page builder blocks are simplified versions:
- Blocks: Limited to that specific page
- Bars/Popups: Site-wide with advanced targeting, frequency, scheduling
- Use Blocks For: Page-specific promotions or content
- Use Dashboard For: Site-wide campaigns, A/B testing, advanced features
What You Cannot Do in Page Builders
- Create full announcement bars (use dashboard)
- Create popup campaigns (use dashboard)
- Set targeting rules
- Configure frequency control
- Schedule across multiple pages
- Run A/B tests (use dashboard)
- Access analytics
What You Can Do
- Insert promo content on specific pages
- Display countdowns (one-off, not campaign)
- Show notifications on specific pages
- Customize appearance
- Add page-specific offers
Troubleshooting Page Builder Integration
Blocks Not Appearing
- Verify HashBar plugin is activated
- Clear browser cache
- Try different page builder if available
- Check browser console for errors
Styling Not Applying
- Check if custom CSS is conflicting
- Verify color/styling settings are saved
- Clear WordPress cache if caching plugin active
- Test in different browser
Countdown Not Working
- Verify end date/time is set correctly
- Check timezone settings
- Confirm countdown JavaScript is loaded
- Test in different browser
Page Builder Recommendations
Best Page Builder for HashBar
- Gutenberg: Native blocks, fastest performance
- Elementor: Most customization options, excellent support
- WPBakery: Legacy but fully supported
- King Composer: Good integration, lightweight
Optimization Tips
- Use Gutenberg for best performance with native blocks
- Limit blocks per page for faster loading
- Optimize images used in promo banners
- Test on mobile devices after adding blocks
Related Documentation
- Countdown Timer - Full countdown timer guide
- Content & Messaging - Crafting effective messages
- Installation - Install HashBar plugin