> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandectes.io/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to create a Cookies Declaration page

You can create an automated Cookie Declaration page using one of two methods, depending on whether your theme supports **Online Store 2.0**.

| This option is available to all our paid plans. 

### Option A: Using an Online Store 2.0 Theme (Using Page Block)

1. **Open your Theme Editor**  
   Go to your **active theme** under **Online Store > Themes** and click **Customize**.

2. **Create a New Page Template**  
* Use the dropdown menu at the top to switch to **Pages**.
* Click **Create Template** and name it: `declaration`.

3. **Add the Cookie Declaration Section**  
* With the new `declaration` template selected, click **Add section** in the left panel.
* Search for **Pandectes Declaration** and add it.
* Make sure the section is **visible** (eye icon is open).
* Click **Save** to apply changes to the theme.

4. **Create or Edit a Page**
* Navigate to **Online Store > Pages**.
* Either **create a new page** or **edit an existing one** (e.g., "Cookie Declaration").
* On the right-hand side, set the **Theme template** to the `declaration` template you just created.
* Click **Save**.

---

### Option B: For All Other Themes (Deprecated using script injection)

1. **Create or Edit a Page**
* Go to **Online Store > Pages**.
* Create a new page or select an existing one.
* Give it a clear title like **Cookie Declaration**.

2. **Add the Declaration Code**
* Switch to the **HTML view** (<> icon in the editor).
* Paste the following snippet inside the page body:

```html
     <div id="pandectes-declaration-container"><!-- leave empty --></div>
     <script defer src="https://s.pandect.es/scripts/pandectes-declaration.js"></script>
```

3. **Save the Page**  
   Click **Save** to apply changes.

---

### Step 2 (Optional): Add to Footer Menu

To help visitors easily find your declaration page, you can link it in the footer.

1. Go to **Online Store > Navigation**.
2. Select the **Footer** menu.
3. Click **Add menu item**.
* Name: `Cookie Declaration`
* Link: Choose **Pages > [Your declaration page]**
4. Click **Save Menu**.

### Video tutorial

${youtube}[How to add a Cookie Declaration Page (Cookie Policy) to your Shopify store](NikLrjz2V2M)
---

By following the steps above, your store will include an automated, compliant, and easily accessible **Cookie Declaration page** powered by **Pandectes**.

