How to test Slide Cart in an unpublished theme
Sometimes, you might want to test the cart in an unpublished theme without having it show in your live store. Since our app is globally injected into all your themes, you can disable it in the live theme (or the theme where you need to stop showing our app) by adding a custom snippet.
Here's how you can do it:
- In your Shopify admin, go to Sales channels -> Online Store -> Themes.
- Find your published theme or the theme where you need to disable Slide Cart->Click the three dots next to Customize and select Edit code.
- In the left sidebar, under Layout, click on theme.liquid.
- Find the opening
<head>
tag and paste the following snippet right below it:
<!-- DISABLE SLIDE CART --> <script>window.SLIDECART_DISABLE = true</script> <!-- END DISABLE SLIDE CART -->
It should look like this:
Don't forget to click Save to apply the changes, and that's it! You've successfully disabled Slide Cart on your theme.
If you'd like to test Slide Cart on your published theme without making the app live, you can create a duplicate of your current published theme and test it there.
If you create the copy after adding the disabling code, remember to remove the snippet from the theme.liquid so the app works as expected.
Not seeing Slide Cart? Check out this guide with the steps for Installing Slide Cart in your theme.