Elementor Display Conditions Explained: Different Headers and Layouts per Page

Display conditions

As soon as you have more than one header or post layout, you need a way to say which one goes where. That is what display conditions do. They are simple once you know the three rules behind them – and those rules save you from long lists of exclusions.

The examples below use Theme Builder For Elementor with the free Elementor, but the ideas apply to any Elementor theme builder.

Include and exclude

Each template has a list of conditions. Every condition either includes a set of pages or excludes them:

  • Include › Entire site – every page of the site.
  • Include › Posts – every blog post.
  • Include › Posts in Category › Recipes – only the posts of one category.
  • Exclude › Pages › Contact – everything that was included, except the contact page.

You can narrow most conditions further with specific items: chosen posts, pages, categories or authors. Left empty, the condition means all of them.

A template without any condition is not shown anywhere. That is useful for drafts and for templates you only want to pick by hand on single pages.

Rule 1: The page’s own choice comes first

A post or page can pick its header, footer and layout in the Theme Builder box of the editor – or choose None (theme default) to fall back to the theme. That choice always wins. Use it for one-off landing pages.

Rule 2: Exclusions remove a template

If a template has a matching Exclude condition, it drops out for that page, whatever else it includes.

Rule 3: The most specific condition wins

This is the rule that makes everything easy. When several templates match the same page, the one with the most specific condition is used. From the most general to the most specific:

LevelConditions
1Entire site
2All singular, All archives
3Posts, Pages, Categories, Tags, Author and Date archives
4Posts by author, Blog (posts page), Search results
5Posts in Category, Posts in Tag
6Front page, 404 page

A condition limited to specific items beats the same condition for all items. If two templates are equally specific, the one modified last wins.

The consequence: you never have to exclude the home page from your main header just to give it another one. A header with Front page beats the header for the Entire site on its own.

Examples you can copy

One header everywhere, a transparent one on the home page

  • Header A: Include › Entire site
  • Header B (transparent): Include › Front page

A special layout for one category

  • Single A: Include › Posts
  • Single B: Include › Posts in Category › Recipes – with an ingredients box and a print button.

No header on a landing page

  • Header: Include › Entire site, Exclude › Pages › Black Friday

Or leave the conditions alone and choose None in the Theme Builder box of that one page.

Blog and category archives with the same design

  • Archive: Include › Blog (posts page) and Include › Categories

A different product page for gift cards

With Theme Builder PRO the WooCommerce templates use the same system:

  • Single Product A: All products
  • Single Product B: Products in category › Gift cards

Popups follow the same rules

Popups use display conditions too: a newsletter popup on Posts, a shipping notice on the shop, a discount on chosen product categories.

Troubleshooting

  • The template doesn’t show: is it published, and does it have at least one Include condition? Does the page have its own choice in the Theme Builder box?
  • The wrong template shows: another template probably has a more specific condition. The template list shows each template’s conditions in the Shown on column.
  • A layout doesn’t apply to an Elementor page: pages built with Elementor keep their own layout by default; only their header and footer change. You can switch this off in the settings.

Ready to try it? Start with a custom header for the entire site and add a second one for your home page.

Share this articleXLinkedInWhatsApp
Theme Builder PRO
Design your WooCommerce shop with the free Elementor
Product pages, cart, checkout, popups and mega menus – from $39 for the first year.

Keep reading