Articles on: FAQ

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 and click on Customize



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.



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.



  1. In the left sidebar, locate the theme.liquid file under the Layout folder.
  2. Exactly below the <head> tag, paste the following line:


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


  1. Click Save.



Troubleshooting


  • Can’t find 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.


Updated on: 29/09/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!