You can turn the Gift Box pop-up off on selected pages, or disable it on one theme while keeping it active on others (useful for testing).
Script to disable Gift Box
Add the following code where you want Gift Box disabled:
<script>
var DISABLE_GIFT_BOX = "true";
</script>
Disable on specific pages
In Shopify admin, go to Online Store > Themes, click the theme’s … menu, then Edit code.
Open the template for the page type you want to target, for example:
index.liquid
,collection.liquid
,product.liquid
,cart.liquid
,page.liquid
, ormain-page.liquid
. (For Online Store 2.0 JSON templates, add the script in a section that’s included on that template.)Paste the script near the top of the file.
Save.
Gift Box will be hidden on pages that use that template. For single items, you can create an alternate template, add the script, and assign it to a specific product, collection, or page.
Disable theme‑wide
In the same theme, open
layout/theme.liquid
.Paste the script (before the closing or near the top of the file).
Save.
Gift Box will be disabled across all pages of this theme only; it will remain active on your other themes.
Have any questions? Please contact us at [email protected] or use the in-app chat, and our support team will assist you.