☰
ELEMENTOR / PRACTICE

How to Set Display Conditions in Elementor Theme Builder Without Template Conflicts

How to Set Display Conditions in Elementor Theme Builder Without Template Conflicts

If two headers, footers, or different post templates appear on the same page, the problem is usually not related to the layout but to the display conditions in Elementor Theme Builder. Two templates may match the same page, causing WordPress to render both of them.

To prevent this, define the responsibility of each template in advance: a global template should apply across the site, while a specialized template should apply only to a specific page, category, post type, or product. Below, we will review how Display Conditions work, provide configuration examples, and outline a process for checking conflicts.

How Display Conditions Work in Theme Builder

Display Conditions determine where Elementor should apply a template. They use Include rules to add a template to a selected area and Exclude rules to remove it from a specific page or section.

For example, Include → Entire Site means that the template is potentially available on every page of the site. If another template is created for a specific page and is also assigned a broad rule, both templates may match the same conditions.

It is important to check not only the template name but all of its conditions. Separate rules for pages, posts, archives, categories, and WooCommerce may overlap even when the templates appear to be intended for different tasks.

  • Include defines the area where the template is allowed to appear.
  • Exclude removes the template from a specific page or group of pages.
  • Broad conditions such as Entire Site should be used carefully.
  • Identical or partially overlapping conditions in multiple templates often cause duplication.

A Reliable Structure for Global and Specialized Templates

For most sites, the clearest structure consists of one global template and separate templates for exceptions. For example, a standard header or footer can be assigned to the entire site, while a special version can be created for a landing page.

The global template can be configured as Include → Entire Site. In that case, the specialized template should have Include set only for the required page or section. To prevent the rules from overlapping, add an Exclude rule for the specialized page to the global template.

This structure is more predictable than creating several templates with broad conditions. The fewer templates that target the same area, the easier it is to identify the cause of a problem during troubleshooting.

  • Global header: Include → Entire Site.
  • Special header for a landing page: Include → a specific page.
  • Global header: Exclude → that same page.
  • For a specific category or post type, use the relevant archive or content template instead of a broad, unspecified rule.

Example Structure for a Special Page

Suppose a site has a standard header for all pages and a separate header for a page called “Promotion.” The global header remains active across the site but receives an exclusion for the “Promotion” page. The specialized header is included only for that page.

As a result, Elementor has no reason to render the global version on the “Promotion” page, while the standard template continues to be used throughout the rest of the site.

How to Configure Display Conditions Step by Step

Before changing conditions, define the purpose of each template. Note whether it is responsible for a header, footer, single post, page, archive, product, or shop page. This helps prevent different template types from being mixed and avoids assigning one template to an excessively broad area.

  • Open Theme Builder and select the required template type.
  • Create or edit the global template.
  • For the base template, set Include → Entire Site if it really needs to apply across the entire site.
  • Create a separate template for a special page, category, archive, or post type.
  • For the specialized template, add Include only for the required area.
  • Return to the global template and add Exclude for the same area.
  • Save the changes and check the conditions of all templates of the same type.

When Exclude Is Essential

Exclusion is especially important when a global template covers Entire Site, all posts, or an entire content type. Adding Include for the specialized template alone is not enough if the base template still formally matches the same page.

For example, if a specialized template is assigned to the “News” category, the global post template must exclude that category. Otherwise, incompatible rules may be applied on the archive or post page.

Common Conflicts with Posts, Archives, and WooCommerce

Most errors occur not on standard pages but in dynamic WordPress areas. The same piece of content may simultaneously belong to a post type, category, author archive, or another taxonomy. Therefore, conditions must be checked at every level.

For single posts, use conditions that specifically target Single Post or the required post type. Archive conditions are needed for post lists, categories, and tags. Do not replace them with a general rule for the entire site if the template should work only in one section.

In WooCommerce, check product, product archive, shop, product category, and cart templates separately. Conditions for products do not always mean the same thing as conditions for standard posts or pages.

  • Do not confuse a single post template with a post archive template.
  • Check whether the global template covers all posts as well as the specialized category.
  • For products, check both single product pages and product archives.
  • If a custom post type is used, make sure the condition is linked specifically to that post type.
  • Check templates added by the theme or a third-party plugin separately.

How to Find the Template Causing Duplication

Start troubleshooting with the specific page where the problem is visible. Identify its type: standard page, post, category, product, or archive. Then open all templates of the relevant type in Theme Builder and review their Display Conditions.

Pay attention to templates with Include → Entire Site, a condition for all posts, or several broad rules at once. Also check whether the theme or another plugin has created its own header, footer, or content template.

After each change, check the page separately. If you change many conditions at once, it will be more difficult to determine which rule resolved or caused the problem.

  • Check that there are not two active templates of the same type for the same area.
  • Compare Include and Exclude settings in the global and specialized templates.
  • Check the conditions for the parent category, subcategory, and individual page.
  • Temporarily disable the suspected template and see whether the duplication disappears.
  • View the page in an incognito window or another browser.

Caching After Changing Conditions

After editing templates, the previous result may remain because of Elementor cache, site cache, server cache, or browser cache. In Elementor, use the maintenance tools and clear generated files and data through Tools → Clear Files & Data, if this option is available in your version.

Then clear the cache of any optimization plugin or hosting service in use. Check the result in a private window so that old CSS files or HTML do not lead to incorrect conclusions.

Common Configuration Mistakes

The most common mistake is duplicating the same condition across multiple templates. For example, two headers may both be assigned to Entire Site even though one was intended only for a landing page. Changing the design will not solve the problem in this case: the display area must be corrected.

Another common situation occurs when a specialized template is created but the global template has no Exclude rule. The site owner sees that the specialized version has been added but does not notice that the standard version remains active as well.

Do not rely on template names alone. A name such as “Promotion Header” does not change anything if its conditions assign the template to the entire site.

  • Do not leave multiple global templates of the same type without clearly separating their areas.
  • Do not use Include for the entire site if the template is needed only in one section.
  • Do not forget to add Exclude to the base template.
  • Do not check only the home page—test posts, archives, categories, and products as well.
  • Do not draw conclusions before clearing the cache and checking the page in incognito mode.
  • Do not ignore a header or footer that may be added by the active theme.

Template Publication Checklist

Before activating a new template, complete a short review. It will help prevent a change intended for one page from unexpectedly affecting the entire site.

  • The exact purpose of the template has been defined.
  • Include conditions are limited to the required area.
  • An Exclude rule has been added to the global template if there is a specialized exception.
  • There is no other active template assigned to the same area.
  • Standard pages, posts, and archives have been checked.
  • For WooCommerce, the product, catalog, and product category have been tested if they are used.
  • The theme header and footer have been checked if they may appear independently of Elementor.
  • Elementor cache and other caching layers have been cleared.
  • The result has been checked for both logged-in and logged-out users.

Frequently asked questions

Why are two headers displayed on the page?

Most often, two active templates have conditions that match the page. Check the header templates, remove duplicate Include rules, and add Exclude to the global template if the page should use a specialized version.

Is adding Include for the specialized template enough?

Not always. If the global template has Include → Entire Site or another broad rule, it may remain active as well. In that case, add Exclude for the specialized area to the global template.

Why did nothing change after updating Display Conditions?

The cause may be the cache of Elementor, an optimization plugin, the server, or the browser. Clear generated Elementor files and data through Tools → Clear Files & Data, clear other caches, and check the page in incognito mode.

Can theme templates conflict with Elementor?

Yes. A theme or third-party plugin may add its own header, footer, or content template independently of Theme Builder. If Elementor conditions are correct but duplication remains, check the theme settings and installed plugins.

Conclusion

To keep Theme Builder free of conflicts, do not create templates simply by adding “one more version.” First determine which template is global and which is an exception, then clearly separate their conditions.

The optimal structure is simple: one base template for a broad area, a specialized template for a specific section, and Exclude in the base template. Regularly checking archives, posts, WooCommerce, and cache will help maintain a predictable site structure.

← All Elementor materials