How to Create and Manage Multiple Headers for Different Pages in Elementor
Content
One of the most powerful features of the 'Header, Footer & Blocks' plugin for Elementor is the ability to create different headers for different parts of your website. However, a common point of confusion arises when users create multiple headers but find that only one is displaying across their entire site. This guide will explain why this happens and walk you through the correct way to set up conditional display rules for your headers.
Why Isn't My Second Header Showing Up?
The core of this issue typically lies in the plugin's display rule hierarchy. When you create multiple headers, the plugin needs explicit instructions on where each one should appear. Without these rules, headers can conflict, and one may override the others. Based on community support threads, this is often because a header set to display on the 'Entire Site' will take precedence over more specific headers unless you tell it not to.
How to Fix It: Using Display and Exclusion Rules
The solution is to use the plugin's built-in Display Rules and Exclusion Rules to precisely control the visibility of each header template. Here’s a step-by-step method:
- Create Your Headers: First, design each unique header you need (e.g., a main header, a header for your homepage, and a header for a specific product category).
- Set Specific Display Rules: For each header, go to its editing screen and look for the 'Display On' condition box in the right-hand panel.
- For a homepage-specific header: Set 'Display On' to 'Pages' > 'Front Page'.
- For a header on specific pages or posts: Set 'Display On' to 'Pages' and then select the specific pages from the list.
- Use Exclusion Rules for Your 'Entire Site' Header: If you have a default header you want on most pages, create a header and set its 'Display On' rule to 'Entire Site'. However, to prevent it from overriding your special headers, you must also set an 'Exclude On' rule.
- In the 'Exclude On' condition box for your 'Entire Site' header, add all the pages where a different header should appear (e.g., your homepage and any other pages with unique headers).
This combination of specific display rules and careful exclusions ensures that each header appears exactly where you want it to, without conflict.
Alternative Method: Using a Single Header with Conditional Blocks
For scenarios where you need a drastically different header for mobile vs. desktop, creating two separate headers can sometimes cause loading issues, as noted in one community thread. A more efficient solution is to build a single header template in Elementor and then use its responsive editing modes.
- Create one header template.
- Inside the template, create two sections or blocks: one designed for desktop and one for mobile.
- Using the 'Advanced' tab in Elementor's editor, set the responsive visibility for each block.
- Hide the desktop block on Mobile and Tablet views.
- Hide the mobile block on Desktop view.
This method can improve performance by loading a single template and simply showing or hiding parts of it based on the user's device.
Troubleshooting Common Problems
- Theme Conflicts: Some themes have their own header logic that can interfere. A common troubleshooting step suggested in the forums is to temporarily switch to a default WordPress theme like Twenty Twenty-Four to see if the issue resolves. The 'Header, Footer & Blocks' plugin also offers different integration methods (Method 1 and Method 2) in its settings for better theme compatibility.
- Plugin Conflicts: If the option to select a template type (Header/Footer) is missing entirely, it could be due to a conflict with another plugin. Try temporarily disabling other plugins to identify the culprit.
By carefully configuring your display rules and using these troubleshooting tips, you can successfully manage multiple headers across your Elementor website.
Related Support Threads Support
-
Headerhttps://wordpress.org/support/topic/header-187/
-
Header linkshttps://wordpress.org/support/topic/header-links-7/
-
Use template throughout all network websites of Multisitehttps://wordpress.org/support/topic/use-template-throughout-all-network-websites-of-multisite/
-
two headers diferent colourhttps://wordpress.org/support/topic/two-headers-diferent-colour/
-
I have set two themes on WordPress, So how i can set header and footer on both.https://wordpress.org/support/topic/i-have-set-two-themes-on-wordpress-so-how-i-can-set-header-and-footer-on-both/
-
How to create different headershttps://wordpress.org/support/topic/how-to-create-different-headers/
-
2 templates and disable onehttps://wordpress.org/support/topic/2-templates-and-disable-one/
-
Mulitple Headers via Shortcodes – 1 Only Showshttps://wordpress.org/support/topic/mulitple-headers-via-shortcodes-1-only-shows/
-
Does not show header in the indicated placehttps://wordpress.org/support/topic/does-not-show-header-in-the-indicated-place/
-
No option for “Select the type of template this is”https://wordpress.org/support/topic/no-option-for-select-the-type-of-template-this-is/
-
Choose page location for one header not workhttps://wordpress.org/support/topic/choose-page-location-for-one-header-not-work/
-
Edit Headerhttps://wordpress.org/support/topic/edit-header-11/
-
Export Header and footerhttps://wordpress.org/support/topic/export-header-and-footer/
-
crear una cabecera diferente para cada productohttps://wordpress.org/support/topic/crear-una-cabecera-diferente-para-cada-producto/
-
How to select the type of template in Gutenberghttps://wordpress.org/support/topic/how-to-select-the-type-of-template-in-gutenberg/
-
Change Header Footer Type?https://wordpress.org/support/topic/change-header-footer-type/
-
Linking Logo to Homepagehttps://wordpress.org/support/topic/linking-logo-to-homepage/
-
two different headers for mobile and for desktophttps://wordpress.org/support/topic/two-different-headers-for-mobile-and-for-desktop/
-
Choose a Templates with suitable widths?https://wordpress.org/support/topic/choose-a-templates-with-suitable-widths/