Description
Header Footer Builder is a free WordPress plugin that lets you create unlimited custom header and footer templates and control exactly where each one appears — down to a specific page, post type, WooCommerce page, archive, or 404.
If you have ever needed a different header on your homepage, a simplified header on the WooCommerce checkout page, or a header-free landing page, this plugin gives you that control through a simple but powerful display conditions system — without touching a single line of code.
Why Header Footer Builder?
Most header and footer plugins let you swap out your theme’s default header and footer, but they treat your entire site as one. Header Footer Builder gives every template its own display conditions — include rules and exclude rules — so you can show a completely different header or footer on every section of your WordPress site.
- Unlimited templates — no cap on the number of header or footer templates you create
- Any page builder — works with the WordPress block editor (Gutenberg), Elementor, and any builder that supports custom post types
- Target any page type — front page, blog index, specific pages or posts, WooCommerce pages, archives, 404, and more
- Include and exclude rules — include a template sitewide and exclude it from specific pages
- Priority-based matching — the most specific rule always wins automatically
Display Conditions: Show the Right Header on the Right Page
Every header and footer template has its own conditions panel. You can assign a template to appear on:
- Entire site — use as a sitewide default header or footer
- Front page and blog index page
- Specific pages or posts — searched and selected by name in a live search field
- All pages, all posts, or any custom post type
- Category archives, tag archives, or all archive pages
- Author archive pages
- Search results pages
- 404 error pages
- WooCommerce pages — shop, single product, cart, checkout, my account
Combine include rules with exclude rules to create precise targeting. For example: show a template on the entire site, but exclude it from the WooCommerce checkout page where you want a stripped-down header instead.
Priority-Based Template Matching
When more than one template could apply to the same page, Header Footer Builder uses a priority scoring system to automatically pick the best match:
- Specific page or post target — highest priority
- Post type (all pages, all posts, all products, etc.)
- Archive or taxonomy rules
- Sitewide catch-all — lowest priority
A dedicated WooCommerce checkout header will always take priority over the sitewide default. No manual sorting, no conflicts.
Compatible With Popular Page Builders and Themes
Design your header and footer content using the editor you already use:
- Gutenberg (WordPress block editor) — supported out of the box
- Elementor — supported via post type support
- Any other page builder that works with WordPress custom post types
Tested and compatible with popular WordPress themes including Astra, GeneratePress, OceanWP, Kadence, and Hello Elementor.
Lightweight and Developer Friendly
- No external dependencies — no bloated frameworks or third-party scripts
- Single efficient database query per page load for template matching
- Clean OOP PHP with PSR-style autoloading
- React-based admin dashboard powered by the WordPress REST API
- Fully hookable conditions matching logic
Use Cases
- Landing pages — remove the header and footer entirely for a distraction-free layout
- WooCommerce stores — show a minimal, focused header on cart and checkout pages
- Blogs — unique header for each category archive
- Membership sites — display different navigation for different sections
- Multi-brand sites — different header branding per section of the site
Installation
- Go to Plugins > Add New in your WordPress admin and search for « Header Footer Builder », or upload the plugin zip file manually.
- Activate the plugin through the Plugins menu.
- Go to Header Footer in your WordPress admin sidebar.
- Click Add New to create your first header or footer template.
- Design the template using the block editor, Elementor, or your preferred page builder.
- Click Conditions next to the template and add your include and exclude rules.
- Save. Your custom header or footer is now live on the pages you selected.
FAQ
-
A header footer builder plugin lets you replace your WordPress theme’s default header and footer with fully custom-designed templates. This plugin goes further by letting you assign different header and footer templates to different parts of your site using display conditions — so your homepage, WooCommerce pages, blog archives, and landing pages can all have a unique header or footer.
-
Does this plugin work with Elementor?
-
Yes. You can use Elementor to design the content of your header and footer templates. The plugin handles the display conditions and template selection logic.
-
Does it work with the WordPress block editor (Gutenberg)?
-
Yes. Templates are standard WordPress custom posts, so the Gutenberg block editor works out of the box — no extra configuration needed.
-
Can I show a different header on my homepage?
-
Yes. Create a header template, open Conditions, add an include rule for « Front Page », and save. That template will only appear on your front page.
-
Can I show a different header on different pages?
-
Yes. Create multiple header templates and assign each one its own display conditions. The plugin automatically picks the best-matching template for every page request.
-
Yes. Create a blank template (with no content), assign it an include rule for that specific page, and it will override the default. You can also use exclude rules to carve out exceptions from a sitewide template.
-
Can I exclude a template from certain pages?
-
Yes. Each template supports both include rules and exclude rules. Exclude rules always override include rules — so you can include a template sitewide and then exclude it from specific pages or post types.
-
What happens if two templates match the same page?
-
The plugin uses a priority scoring system. A rule targeting a specific page beats a rule targeting all pages, which beats a sitewide rule. If two templates still tie, the most recently published one is used.
-
Does it support WooCommerce?
-
Yes. You can target the WooCommerce shop page, single product pages, cart page, checkout page, and my account page using dedicated display condition options.
-
Which WordPress themes does it support?
-
Tested with Astra, GeneratePress, OceanWP, Kadence, and Hello Elementor. It is designed to work with any theme that supports custom header and footer template regions.
-
Do I need to know how to code?
-
No. Creating templates, configuring display conditions, and publishing is all done through the WordPress admin — no coding required.
-
Will it slow down my site?
-
No. Template matching uses a single efficient database query per page load. There are no external API calls, no frontend JavaScript for template selection, and no unnecessary assets loaded on the front end.
-
Can developers customize the template matching logic?
-
Yes. The conditions matching logic is fully OOP and hookable. See the
ConditionsMatcherclass in the plugin source for available hooks. -
Is multisite supported?
-
The plugin works on standard WordPress installs. Network-wide multisite configuration is not yet supported.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Header Footer Builder – Custom Header and Footer for WordPress” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Header Footer Builder – Custom Header and Footer for WordPress” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.3
- Fix: Compatibility with WordPress version 7.0
1.0.2
- Added display conditions system with include/exclude rules
- Priority-based template matching engine
- Smart specifics search for pages, posts, categories, and tags
- Conditions badge in dashboard showing rule counts
- Improved dashboard UI with type badges and publish/unpublish controls
- Fixed sanitization of condition rules in REST API
1.0.1
- Submission feedback fix
1.0.0
- Initial release
- Basic header/footer template builder
