> For the complete documentation index, see [llms.txt](https://help.spicegems.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.spicegems.com/geoip-country-redirect/country-redirect/create-clone-and-delete-template.md).

# Redirect Templates

Creating and Managing Popup/Banner Templates:

### **A. Creating Templates:** You can create templates in two ways:

### Process 1: From the **Rule Creation Window**

While creating a redirect rule (in [**Step 3: Redirect Type**](/geoip-country-redirect/country-redirect/create-redirect-rule.md#step-4-redirect-type)), you can create and customize a new template:

* Choose Type → Display Based Redirect → Click On the **"Create New template"** button.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2Ft0Jxx0HD7dxGeoTsnGjw%2FCR_Template-1.png?alt=media&amp;token=f9461432-0546-402d-ae0e-9014e607d943" alt=""><figcaption></figcaption></figure>

* Choose from the Pre-designed templates.&#x20;

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2Foonv9W0LM8tBbnJuhSZQ%2FCR_Template-2.png?alt=media&amp;token=0b77e53d-3bab-448d-892c-0650fafe984e" alt=""><figcaption></figcaption></figure>

* Customize the template in the Editor based on your preferences

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FyoUosreigCXampo0Dnja%2FCR_Template-3.png?alt=media&amp;token=daa8612e-390a-4d81-9f93-19c7c126e114" alt=""><figcaption></figcaption></figure>

Click on the Done button to apply the changes.\
You can add the [**Dynamic Keys**](/geoip-country-redirect/country-redirect/dynamic-keys.md) to display the country name and the country flag to the visitors.

The template will appear in the rule. Click the **Save** button to add the template and create the rule.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FyaMlHNKx05GPYT4BXAAL%2FCR_Template-4.png?alt=media&amp;token=cc198472-1409-4582-81d4-f272d5b8deaa" alt=""><figcaption></figcaption></figure>

Created Template Saved in the rule.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FoO9qSsBSIgJrdjUObPYx%2FCR_Template-5.png?alt=media&amp;token=57d2a836-4f85-4aa4-a3e2-0e6b67b6f94b" alt=""><figcaption></figcaption></figure>

### Process 2: From the Templates section

You can also create or manage templates directly from the **Templates** section:

* Click on **"+ Explore Redirect Template"**.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FpTA8YlFg26iwLFz10YWK%2FCR_Template-6.png?alt=media&amp;token=53250238-d60b-4e45-b509-aa1bcdcb77c5" alt=""><figcaption></figcaption></figure>

* Choose from the Pre-designed templates.&#x20;

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FCy9aYdMbjS2r0LKjHi6O%2FCR_Template-7.png?alt=media&amp;token=47d949fc-03c1-4e05-8c84-e1488de7ea83" alt=""><figcaption></figcaption></figure>

* Customize the template in the Editor based on your preferences. Click save to apply the changes.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FxyoobwAC58XhgqalwDZA%2FCR_Template-8.png?alt=media&amp;token=21855e6a-b21f-4c08-af91-176971adf12b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** In the pop-up within the **Template Editor** section, the countries shows **Canada** and the **United States** as default.

The visitor’s country and store name are display in the storefront **pop-up/banner** using the following keys **\[country-name], \[country-code],** and **\[store-name]**.
{% endhint %}

For customization, please refer to the link: [Popup Customization](/geoip-country-redirect/videos.md#popup-customization)

* The template will appear in the Templates section.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FoP4ZBhhWirx4yXFIO6SV%2FCR_Template-9.png?alt=media&amp;token=009000c2-1b9d-4cff-a7ba-8d9df26cb88d" alt=""><figcaption></figcaption></figure>

### B. Managing Existing Templates

#### **Clone a Template**

* Go to **Templates**.
* Click the **Clone** button next to the template you want to duplicate.
* After cloning, click **Customise** to edit the cloned version as per your needs.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2FlwzsHTsKUMT5xjwvPhCT%2FCR_Template-10.png?alt=media&amp;token=252a0e59-bf3c-4f20-a92a-b2d2f023ee9c" alt=""><figcaption></figcaption></figure>

#### **Delete a Template**

* Go to **Templates**.
* Click the **Delete** button next to the template you want to remove from the list.

<figure><img src="https://2119731643-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lo5KC5Ta6Fs1-alV4Av%2Fuploads%2Fc2ArKp5l6B3UsSIP3w3X%2FCR_Template-11.png?alt=media&amp;token=0b6bda68-3a97-48a6-9cf1-ca9809fcbbc5" alt=""><figcaption></figcaption></figure>
