All Collections
App: Gift Box
How To's
How to uninstall Gift Box and clean up my theme?
How to uninstall Gift Box and clean up my theme?
Lucia Dvořáková avatar
Written by Lucia Dvořáková
Updated over a week ago

By default, Gift Box is not adding any script to your theme. We only do that manually to help improve the app reliability, and we always inform you about that.

After you uninstall Gift Box, you can check your theme just to be sure or to remove the script, if present:

➡️ 1. Go to your store SALES CHANNELS » Online Store » Themes » Actions » Edit code

➡️ 2. Open theme.liquid in the Layout folder, remove line {% render 'digismoothie-giftbox' %} and save.

➡️ 3. Scroll down to Snippets folder, delete file digismoothie-giftbox.liquid and save.

That's all, your theme is now free of any Gift Box scripts/codes.

➡️ 4. If everything is working fine, you can also delete the backup file of your theme.liquid which we created before we automatically inserted the script. It's located in the Layout folder and named giftbox-backup-date-theme.liquid.

If you are unsure how to do it yourself just let us know at support@digismoothie.com and we will be happy to do it on your behalf (requires access to your store).

Why are we adding the script?

Until the end of September 2020, we have been not been doing any theme changes or script injections. This was great because there were no code leftovers when merchants uninstalled the app.

The disadvantage was the script was loaded asynchronously which on some stores took 5+ seconds. That's a very long time and could cause some customers were not to get the free gift because they went to the checkout before the Gift Box script was loaded.

By adding the script directly to the merchants' themes we are significantly improving the app performance and loading times.

The difference is clearly shown in the image below (i.e. 1 second vs. 10 seconds).

Did this answer your question?