BasicsAssigning Conditions

Assigning Conditions

How templates get matched to pages: template type, target, and display conditions are three separate mechanisms, and not every template type uses all three.

Where a template appears depends on up to three things, and which ones apply depends on the template type:

  1. Type, the 8 kinds (Header, Footer, Single, Archive, Single Product, Products Archive, Search Results, 404 Page).
  2. Target, for Single, Archive, and Search Results templates only, a broader category such as a post type or taxonomy. A template made with + Add New → Single (Post / Page) targets Single Post by default, and a new Archive template targets any archive. A Search Results template targets either all search results or the search of one post type, such as Products. Create it from a slot on the Canvas view to pick a different target, for example Front Page or Single Page.
  3. Conditions, Include/Exclude rules for finer control, available on Header, Footer, and Products Archive templates directly, and as a tie-break within the target of Single, Archive, and Search Results templates.

404 Page and Single Product templates don't use the Conditions button at all. If you create more than one template of the same type, the most recently activated one wins, there's no rule-based scoping for these two types. The Order Received (thank you) template works the same way.

Opening Conditions

From UiChemy → Theme Builder (Grid view), click Conditions on a Header, Footer, Single, Archive, Products Archive, or Search Results template's card. You can also set conditions immediately after saving a template for the first time.

This opens the Display conditions popup: "Choose where '[Template Name]' appears. Rules stack, an Exclude always wins."

Adding a Condition

  1. Click + Add condition.
  2. Choose Include or Exclude.
  3. Select the scope from the dropdown (see the groups below).
  4. If the scope needs a specific target (a post, page, or category), select it in the second field.
  5. Click Save Conditions.

A Header or Footer template with no conditions set isn't invisible, it defaults to matching the entire site. Add conditions to narrow it, not to turn it on.

Include vs Exclude

TypeEffect
IncludeShow the template on the selected pages
ExcludeHide the template on the selected pages, even if an include condition would match

You can combine includes and excludes on the same template for fine-grained control.

Condition Scopes

The scope dropdown groups the options under headings. Header, Footer, and Single templates list all of these:

GroupScopeWhat it targets
StandardEntire WebsiteEvery page and post on the site
StandardAll SingularsEvery single post, page, or custom post type entry
StandardAll ArchivesEvery archive page
Default PagesFront PageThe site's front page
Default PagesBlog / Posts PageThe main posts listing
Default PagesDate ArchiveDate-based archives
Default PagesAuthor ArchiveAuthor archives
Default PagesSearch PageThe search results page
Default Pages404 PageThe not-found page
Default PagesWooCommerce Shop PageThe shop page (only listed when WooCommerce is active)
Date & TimeDay of WeekChosen days of the week
Visitors SourceOperating SystemVisitors on a chosen operating system
Visitors SourceBrowserVisitors using a chosen browser
Visitors SourceLogin StatusLogged in or logged out visitors
Visitors SourceUser RolesVisitors with a chosen user role
ContentAll of a post typeEvery post or page of a type you pick (for example, all Posts, or all Pages)
ContentIn a taxonomy termContent in a chosen taxonomy term (for example, a category or tag)
ParticularParticular Post / PageOne exact page or post

Each scope that needs more detail (a post type, taxonomy, term, day, role, or a specific post) shows a second field to pick it. Day of Week, Operating System, Browser, Login Status, and User Roles are also available as Include or Exclude rules.

On an Archive template the list is shorter, since singular-only scopes can never match an archive page. It offers All Archives, the Default Pages entries (without Front Page), Day of Week, the Visitors Source entries, and Taxonomy archive.

Examples

Global header except on checkout:

  1. Add Include → Entire Website.
  2. Add Exclude → Particular Post / Page → your Checkout page.

A different header for the blog:

  1. Create two Header templates.
  2. General header: Include → Entire Website.
  3. Blog header: Include → All of a post type → Posts (more specific, wins on post pages).

Condition Priority

For Header, Footer, and Products Archive templates, and as a tie-break inside a Single, Archive, or Search Results template's target, the more specific condition wins. A template assigned to a specific post takes priority over one assigned to all posts.

For 404 Page and Single Product templates, there's no specificity system, if you have more than one active template of that type, the one you activated most recently is the one that shows.

If you already have a header or footer active in Elementor Pro or Nexter, don't also activate a UiChemy header/footer, it will create a duplicate on the front end. The Theme Builder shows a notice if another theme builder is detected, but it does not automatically stand down, you have to avoid activating both yourself.

Frequently Asked Questions