> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/banners/configure-banner-display-conditions.md).

# Configure banner display conditions

## Display the banners on all pages on the site

### **Steps to manage**

1. Open the app > click **Banners** > open the banner or create a new one
2. Click the **Placement**
3. In the **Conditions** parts, skip this part and the banner will automatically display on all pages &#x20;
4. In the field under the **Conditions** field > Select **Display on both desktop and mobile browsers**. The banner will always show up on all pages of the site&#x20;
5. Click **Save**

<figure><img src="/files/dMoJZAGi9xO1OpDN4J7Q" alt=""><figcaption></figcaption></figure>

***

#### Set up conditions to display the banners on specific pages

Currently, the app allows you to set up conditions to show a banner on the front store.&#x20;

We can show banners with selected pages, languages, products, product tags, customers, or customer tags.

### **Step to manage**&#x20;

1. Open the app > click **Banners** > open the banner or create a new one
2. Click the **Placement**&#x20;
3. Click **Add another condition** button > Set the condition with pages, customers, or products based on your needs. For example: ***Page – is equal to – Collection page***&#x20;
4. If you add multiple conditions, please check the if **Products must match:** **all conditions** or **Any condition**. &#x20;
5. Select **where to display**&#x20;
6. Click **Save**&#x20;
7. Check the result on the front store

<figure><img src="/files/RAew3sSKa7XVMHrrSzyz" alt=""><figcaption></figcaption></figure>

> **Products must match all conditions or any condition.**\
> – If you select "all conditions", products must match all the conditions added\
> – If you select "any condition", products must match at least one of the conditions

***

## Display a banner at a customized position on the front store

You can use the shortcode to display the banner at a specific position.&#x20;

### **Step to manage**

**In the Samita app:**&#x20;

1. Open the app > click **Banners** > open the banner or create a new one
2. Click the P**lacement,** in **Select A Display Position >** select **Custom**
3. In P**lacement, scroll down** > **Shortcode** > **Copy** shortcode. With **shortcode**, you can display banners anywhere on your website.
4. Click the **Display** icon on the left sidebar > Copy the Shortcode of the banner

<figure><img src="/files/HMxwFOYm0qzhzLK8lssG" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/WkCi6pAovUrw7imSJ8ma" alt=""><figcaption></figcaption></figure>

**On the Shopify admin page:**

1. From the Shopify admin page, open the page/template you want to add to the banner
2. Paste the Shortcode of the banner
3. Save the changes&#x20;
4. Check the result on the front store

<figure><img src="/files/sbYR1HDd1bjk8X9tA8fF" alt=""><figcaption></figcaption></figure>

**On the Shopify admin page:**

1. From the Shopify admin page, click **Online store** > **Themes** > click **Customize** button of the theme you want to work on&#x20;
2. Open the page template (Ex.**Homepage**)&#x20;
3. On the left, click **Add section** > **Apps** > select **Samita banner**&#x20;
4. Paste the shortcode of the banner to the section
5. Drag/drop the app section to change the position of the banner on the page
6. **Save**&#x20;

<figure><img src="/files/pXcUycQhRQiFmIwUetAm" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7B4UvSGn0PnPr84Kw1Qt" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.samita.io/banners/configure-banner-display-conditions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
