Previewing Giftship on Your Website Before Publishing Live

If you want to preview on a test theme before making the changes live, you can add the following snippet of code to your live theme right after the opening <head> tag in your theme.liquid file. Once you wish to set it live, make sure to remove the code from your live theme.

<script type="text/javascript">
/* This disables Giftship */
var Gs = {};
</script>

To summarize this entire process…

– Create a duplicate theme of your site. Starting from your dashboard and going to Online Store –> Themes and selecting Duplicate from the Actions dropdown associated with your desired theme.

– Go to your live theme, and enter in the code as instructed above in your theme.liquid file.

– Go into the Giftship dashboard and enable the app. 

– Go back to your duplicated theme, and press ‘Preview’.

You can now view Giftship on your duplicated theme, while it is hidden on your live site. Please remember to remove the code above from your live site if you want to make Giftship live.

Can't find the answer in our documentation?
Contact Support