> ## 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).

# Fix Missing Pandectes Script After Theme Change

Guide for merchants to properly re-activate Pandectes after switching themes in Shopify.

### Introduction

When you switch to a new Shopify theme, customizations like app embeds and code snippets don’t automatically carry over. For **Pandectes GDPR Compliance** to work correctly, paid users must re-enable the app and reinsert the snippet into their new theme. This guide walks you through the necessary steps to ensure continued compliance and proper script loading for your storefront.

### How to Re-Enable the App Embed and Insert the Script

###### Step 1: Open Your Theme Customize Page

Navigate to **Shopify Admin > Online Store > Themes&#32;**and click on**&#32;Customize**

![](https://storage.crisp.chat/users/helpdesk/website/-/1/a/5/a/1a5af239e847cf00/screenshot-2025-06-27-at-12032_w46w58.png =1000x566)

### Step 2: Enable the Pandectes App Embed

1. On the theme editor page, click the **App embeds icon**.
2. Look for **"Pandectes Core"**.
3. Toggle it to **enabled**.
4. Click **Save** in the top right. 

||| ⚠️ If you don’t see the App Embed, make sure the app is installed and that you’re using a theme compatible with Shopify’s App Embed system.

![](https://storage.crisp.chat/users/helpdesk/website/-/1/a/5/a/1a5af239e847cf00/screenshot-2025-06-27-at-12082_131wzmc.png =1000x1000)

### Step 3: Edit Your `theme.liquid` File

1. Go back to **Online Store > Themes**.
2. Click the **Three dots > Edit code** on your active theme.

![](https://storage.crisp.chat/users/helpdesk/website/-/1/a/5/a/1a5af239e847cf00/screenshot-2025-06-27-at-12054_1l45bbt.png =1000x1000)

3. In the left sidebar, locate the `theme.liquid` file under the **Layout** folder.
4. Exactly below the `<head>` tag, paste the following line:

```
<script src="{{ 'pandectes-rules.js' | file_url }}"></script>
```

5. Click **Save**.  

![](https://storage.crisp.chat/users/helpdesk/website/-/1/a/5/a/1a5af239e847cf00/screenshot-2025-06-27-at-11572_dua4e9.png =1000x287)

### Troubleshooting

* **Can’t find&#32;`theme.liquid`?**
Some Shopify 2.0 themes use a different file structure. Look for `layout/theme.liquid` or consult your theme’s documentation.

* **Still not working?**
Reach out to our support team via the chat in your dashboard. We’ll help set it up for you.

### Why This Matters

Due to Shopify’s recent guidelines, we recommend adding this script for full functionality of features like our autoblocker and integrations. It ensures everything runs smoothly after a theme change.
