Help Center
Templates’ Conditions Overview

Templates’ Conditions Overview

Find out how to set needed conditions for the templates built with the help of the JetThemeCore plugin without any effort.

Theme Templates’ Conditions

With the JetThemeCore plugin, you can easily define the templates’ conditions by opening WordPress Dashboard > Crocoblock > Theme Builder.

For example, let’s build a page template by pushing the “Create new page template” button.

create template jetthemecore

Straightaway, you can set the conditions in the appeared pop-up, just hit the “Add Condition” button.

conditions for new template

Once clicked, you can specify the condition with the help of several drop-down menus. 

The first selector allows you to choose from two options.

include and exclude options
  • Include — allows including conditions for display;
  • Exclude — lets you exclude conditions.

The following drop-down defines the type of source.

source of conditions

You can set different conditions:

  • Entire — for the whole site;
  • Singular — for available singular pages;
  • Archive — for provided archive options;
  • Advanced — for URL parameter, device, and roles;
  • Woocommerce — for WooCommerce products archive, single product, and pages.

Entire

Once this value is selected, there is only one option in the third drop-down menu, “Entire Site.”

entire site option

Singular

Define the source for the singular page in the following selector.

options for singular

Archive

Pick the source for the archive in the selector and specify the archive if required.

conditions for archive

Advanced

With the “Advanced” option, you can set other conditions for a template, such as URL parameter, device, or WordPress roles.

However, also mind pasting the needed value in the final field. It will differ depending on the option you choose in the preceding selector.

options for advance

WooCommerce

Warning

You can only use this condition if the WooCommerce plugin is installed and activated.

With the “WooСommerce” option, you can set the source for the WooCommerce pages.

woocommerce option

Remember that you can set several conditions by hitting the “Add condition” button above the first condition.

conditions for template

For instance, we include the template for the entire site and exclude it on the front page.

Mind that you can delete conditions by pressing the trash icon.

After setting the desired conditions, click on the “Create” button. In the JetThemeCore dashboard, you will see the conditions set for the created template.

template in the jetthemecore dashboard

Once the template is built, you can press the dots-shaped icon and “Edit conditions” button to open the conditions manager whenever you need.

edit conditions

Now you know how to set the desired conditions with the JetThemeCore plugin with just several clicks.

Was this article helpful?
YesNo

Need help?

Ask Facebook community

Get answers from 22K Crocoblock Community experts from all over the world.

Start a live chat

Ask question to support agent and share its details via chat messages.