What Are Templates?
Templates are saved configurations of builder elements that can be reused:Layout Templates
Complete page layouts with all rows, columns, and modules
Row Templates
Single rows with columns and modules
Column Templates
Individual columns with their modules
Module Templates
Pre-configured module settings
Template Types
Built-in Templates
Location:~/workspace/source/data/
Beaver Builder ships with 70+ professionally designed templates:
- Page Layouts (71)
- Row Templates (93)
- Module Templates (65)
- Global Templates
Full page templates including:
- Home pages (2 layouts)
- Landing pages (2 layouts)
- About pages (5 layouts)
- Services pages (3 layouts)
- Contact pages (7 layouts)
- Blog layouts (3 layouts)
- Pricing pages (2 layouts)
- Coming Soon / Maintenance
- And 40+ more…
.dat file contains serialized layout data ready to import.Template Files
Template data is stored in.dat files:
Saving Templates
Save a Layout Template
Save Row, Column, or Module
Programmatic Template Creation
Using Templates
Apply a Layout Template
Insert Row or Module Template
Global Templates
Global templates are linked across your site. When you edit a global template, the changes apply everywhere it’s used.Creating Global Templates
Managing Global Templates
Global Template Benefits
Consistent Branding
Consistent Branding
Update headers, footers, or CTAs once and apply everywhere
Easy Maintenance
Easy Maintenance
Make one edit instead of updating dozens of pages
Team Collaboration
Team Collaboration
Ensure team members use approved components
Dynamic Content
Dynamic Content
Link to a single source of truth for shared content
Template Library
The template library provides an organized interface for browsing templates:Template Categories
- All - View all templates
- Landing - Landing page layouts
- Saved - Your saved templates
- My Templates - User-created templates
- Core - Beaver Builder templates
- User Templates - Global templates
Template Organization
Template Data Structure
Template.dat files contain serialized PHP data:
Creating Custom Templates
Template Development Workflow
Template Best Practices
Use Placeholders
Use Placeholders
Include placeholder text and images that users can replace:
Optimize Images
Optimize Images
Use appropriately sized images to keep template files small
Include Documentation
Include Documentation
Add a readme or comments explaining the template’s purpose
Test Responsiveness
Test Responsiveness
Ensure templates work well on all screen sizes
Version Control
Version Control
Keep templates in version control for easy updates
Template Hooks
Extend template functionality with hooks:Working with Template Data
Export Template
Import Template
Template Examples
Here are some example template use cases:Header Template
Pricing Table Template
Next Steps
Layouts
Work with layout templates
Cloud Templates
Access cloud template library
Global Settings
Configure global styling
Architecture
Learn about template architecture