Developer tools
Child themes
Learn how to create and customize child themes
Hooks & filters
Complete reference for theme actions and filters
Quick start for developers
Child themes
Child themes are the recommended way to customize BB Theme without losing changes when the parent theme updates.Why use a child theme?
- Update-safe - Your customizations won’t be overwritten
- Organized - Keep all customizations in one place
- Reversible - Easy to disable or remove customizations
- Professional - Follow WordPress best practices
What you can customize
- Add custom CSS in
style.css - Add custom PHP in
functions.php - Override parent theme templates
- Enqueue custom scripts and styles
- Register custom post types and taxonomies
- Add theme support for various features
Hooks and filters
BB Theme provides numerous hooks and filters for customization.Action hooks
Actions let you insert custom code at specific points in the theme:fl_head_open- After opening<head>tagfl_body_open- After opening<body>tagfl_before_header- Before header sectionfl_after_header- After header sectionfl_before_content- Before content areafl_after_content- After content areafl_before_footer- Before footer sectionfl_after_footer- After footer section
Filter hooks
Filters let you modify theme data:fl_topbar_enabled- Control top bar visibilityfl_header_enabled- Control header visibilityfl_footer_enabled- Control footer visibilityfl_nav_toggle_text- Modify mobile menu button textfl_social_icons- Customize social icon order
Common customization examples
Add custom CSS
Add to your child theme’sstyle.css:
Add custom PHP function
Add to your child theme’sfunctions.php:
Hide header on specific pages
Add to your child theme’sfunctions.php:
Add custom menu location
Add to your child theme’sfunctions.php:
Template customization
Override template files
You can override any parent theme template file:Common template files
header.php- Site headerfooter.php- Site footerindex.php- Main templatesingle.php- Single post templatepage.php- Page templatearchive.php- Archive templatesidebar.php- Sidebar template
CSS class reference
BB Theme uses consistent CSS classes for styling:Layout classes
.fl-page- Main page container.fl-page-content- Content area.fl-page-header- Header section.fl-page-footer- Footer section
Header classes
.fl-page-header-wrap- Header wrapper.fl-page-header-container- Header container.fl-page-nav-wrap- Navigation wrapper.fl-page-nav- Navigation menu
Content classes
.fl-post- Post container.fl-post-header- Post header.fl-post-content- Post content.fl-post-footer- Post footer
Footer classes
.fl-page-footer-wrap- Footer wrapper.fl-page-footer-container- Footer container.fl-page-footer-widgets- Footer widgets area
White labeling
You can white label your child theme for clients:- Replace
screenshot.pngwith custom thumbnail - Edit theme details in
style.cssheader - Customize theme name, author, and description
- Rename child theme directory
Code resources
Auto-generated hook documentation
Complete, up-to-date hook documentation is auto-generated from the code: View BB Theme hooksVisual hook guide
See visual diagrams showing where hooks fire: ProBeaver hook layoutCode snippets
Find ready-to-use code snippets in the knowledge base:- Custom header modifications
- Footer customizations
- Menu enhancements
- Layout adjustments
- Style overrides
Best practices
File organization
- Keep all customizations in child theme
- Use comments to document your code
- Organize CSS with clear section headers
- Create separate files for major features
Performance
- Only enqueue scripts/styles when needed
- Minify custom CSS and JavaScript
- Use conditional loading for page-specific code
- Optimize images and assets
Compatibility
- Test with latest WordPress version
- Check compatibility with popular plugins
- Follow WordPress coding standards
- Use proper escaping and sanitization
Version control
- Use Git for child theme development
- Commit changes regularly
- Document major changes in commits
- Tag stable releases
Support and community
Getting help
- Check the knowledge base articles
- Search the support forums
- Review code examples
- Ask in the community Slack
Contributing
- Report bugs and issues
- Suggest new features
- Share your customizations
- Help other developers
Related resources
WordPress Theme Handbook
Official WordPress theme development guide
Beaver Builder Plugin API
Beaver Builder plugin developer resources
Customizer settings
All available Customizer options
Theme defaults
Understanding default layouts and styles