You can add following meta tag to the pages you want to hide the drawer from.
<meta name="upside:ucd:active" content="false" />
How to add the meta tag in your published theme?
- Open
theme.liquid
in your Shopify admin. - Add the meta tag code provided above before ending
</head>
If you add the above code without any condition, Cart drawer won’t work on any of the page. It can be useful when you want to disable it from one/some of your themes.
How to add the meta tag in one of your unpublished theme?
- Visit
Themes
page in your Shopify admin. - Click on ‘Actions’ in front of your unpublished and click ‘Edit Code’ in the dropdown.
- Click
theme.liquid
fromLayout
directory. - Add the meta tag code provided above before ending
</head>
Code Examples
Disable cart drawer on products page
{% if template.name == 'product' %}
<meta name="upside:ucd:active" content="false" />
{% endif %}
Disable cart drawer on collections page
{% if template.name == 'collection' %}
<meta name="upside:ucd:active" content="false" />
{% endif %}
Disable cart drawer on cart page
{% if template.name == 'cart' %}
<meta name="upside:ucd:active" content="false" />
{% endif %}