---
title: "Add or edit widget variations"
slug: "add-or-edit-widget-variations"
abstract: "Add or edit widget variations in Sitecore Search."
---
# Add or edit widget variations

The following procedures describe how to add widget variations and rules in Sitecore Search. When you add a widget variation[^UUID-48c6b92f-d97a-3d5b-9006-85685f9183f0_N677e71d1b3127] to a widget, it has no rules.

> [!important]
> To save a widget variation rule, you need to populate at least one of the following configurations:
>
> -   Site or visitor context.
>
> -   Blacklist, boost, pin, or bury strategy.

## Add a widget variation and rule to a widget

To add a widget variation and rule to a widget:

1. On the menu bar, click **Widgets**.
2. On the **Widgets** tab, click the name of the widget you want to open.
3. On the **Widget Variations** tab, click **Add variation**.
4. Enter a name for this new variation then click **Save**.
5. On the **Rules** tab, click **Add Rule** then if your implementation has only one entity, go to step 7.
6. In the top banner, on the right, in the **Output entity** dropdown menu, select an entity.

    > [!note]
    > Selection change in the **Output entity** dropdown menu:
    >
    > -   displays the number of entity items matching the rule.
    >
    > -   populates the rule with selected entity items.
    >
    >
    > The items in the slots of a new rule do not necessarily reflect those at runtime.

7. (Optional) To configure rule, follow a procedure from the following topics:
    - [Configure results using context](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/understanding-context-in-search/configure-results-using-context.html "Configure results using context")
    - [Prioritize results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/prioritize-results.html "Prioritize results")
    - [Exclude or bury results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/exclude-or-bury-results.html "Exclude or bury results")

## Schedule a widget variation

To schedule a widget variation:

1. On the menu bar, click **Widgets**.
2. On the **Widgets** tab, click the name of the widget you want to open.
3. On the **Widget Variations** tab, click the name of the widget variation you want to open.
4. In the bar above the list of rules, to open variation scheduler, click **Schedule**.
5. Select start and end dates then from timezone dropdown, select the applicable value.
6. Choose from one of the following options:

    To restart, click **Clear schedule** and go back to step 5.

    To ignore any changes and return to the variation page, click **Cancel**.

    To save changes and assign schedule to variation, click **Save** then on the variation page, click **Publish**.

## Add a widget variation rule

To add a widget variation rule:

1. On the menu bar, click **Widgets**.
2. On the **Widgets** tab, click the name of the widget you want to open.
3. On the **Widget Variations** tab, click the name of the widget variation you want to open.

    > [!note]
    > If you want to make this variation the default widget variation, turn on the **Make this as a default variation** switch.

4. On the **Rules** tab, click **Add Rule** then if your implementation has only one entity, go to step 6.
5. In the top banner, on the right, in the **Output entity** dropdown menu, select an entity.

    > [!note]
    > Selection change in the **Output entity** dropdown menu:
    >
    > -   displays the number of entity items matching the rule.
    >
    > -   populates the rule with selected entity items.
    >
    >
    > The items in the slots of a new rule do not necessarily reflect those at runtime.

6. (Optional) To configure rule, follow a procedure from the following topics:
    - [Configure results using context](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/understanding-context-in-search/configure-results-using-context.html "Configure results using context")
    - [Prioritize results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/prioritize-results.html "Prioritize results")
    - [Exclude or bury results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/exclude-or-bury-results.html "Exclude or bury results")

## Edit a widget variation rule

To edit a widget variation rule:

1. On the menu bar, click **Widgets**.
2. On the **Widgets** tab, click the name of the widget you want to open.
3. On the **Widget Variations** tab, click the name of the widget variation you want to open.

    > [!note]
    > If you want to make this variation the default widget variation, turn on the **Make this as a default variation** switch.

4. On the **Rules** tab, click the rule you want to edit.
5. In the top banner, on the right, in the **Output entity** dropdown menu, to edit the entity.

    > [!note]
    > Selection change in the **Output entity** dropdown menu:
    >
    > -   displays the number of entity items matching the rule.
    >
    > -   populates the rule with selected entity items.
    >
    >
    > The items in the slots of a new rule do not necessarily reflect those at runtime.

6. To configure rule, follow a procedure from the following topics:
    - [Configure results using context](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/understanding-context-in-search/configure-results-using-context.html "Configure results using context")
    - [Prioritize results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/prioritize-results.html "Prioritize results")
    - [Exclude or bury results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/exclude-or-bury-results.html "Exclude or bury results")

## Create or edit a global widget variation rule

To create of edit a global widget variation rule:

1. On the menu bar, click **Global Resources**.
2. Click **Global Widget**.
3. On the **Global Widget Variations** tab, click **Add Variation** and enter an easy to identify name for the new variation.
4. Turn on the **Make this as a default variation** switch and click **Save**.
5. On the **Rules** tab, click the rule you want to edit or click **Add Rule**.
6. In the top banner, on the right, in the **Output entity** dropdown menu, to edit the entity.

    > [!note]
    > Selection change in the **Output entity** dropdown menu:
    >
    > -   displays the number of entity items matching the rule.
    >
    > -   populates the rule with selected entity items.
    >
    >
    > The items in the slots of a new rule do not necessarily reflect those at runtime.

7. (Optional) To configure rule, follow a procedure from the following topics:
    - [Configure results using context](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/understanding-context-in-search/configure-results-using-context.html "Configure results using context")
    - [Prioritize results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/prioritize-results.html "Prioritize results")
    - [Exclude or bury results](https://doc.sitecore.com/search/en/users/search-user-guide/display-relevant-results/exclude-or-bury-results.html "Exclude or bury results")

[^UUID-48c6b92f-d97a-3d5b-9006-85685f9183f0_N677e71d1b3127]: A customized widget that contains rules that impact search results, which can be used to schedule content to appear at specific times or under certain conditions.  
    
    For example, you can use a widget variation to emphasize specific items on your website for a certain time period, such as summer or Black Friday, or use it to display content for specific devices.
