Shopify.dev Cookie Compliance Banner not showing

Hey guys,

I am using the Shopify Cookie Compliance Banner (https://shopify.dev/themes/trust-security/cookie-banner) and have followed the setup exactly.

I’ve created the cookie-banner.liquid snippet in the snippets directory and have added the following code inside the body tags of the theme.liquid file as instructed:

{% render 'cookie-banner' %}

Unfortunately, it’s not showing up in my store.

When removing the fist line of code from cookie-banner.liquid snippet (#cookies-banner { display: none; …}), it does display, but doesn’t remember the users preference and pops back up every time the page is refreshed or re-visited.

Any idea of why this might be happening? I am located in Australia if that makes any difference.

Thanks for your help!

@R_G

Sorry you are facing this issue, it would be my pleasure to help you.

Welcome to the Shopify community! :blush:
Thanks for your good question.

Please share your site URL,
I will check out the issue and provide you a solution here.

Thanks @KetanKumar , the URL is www.rollagames.com.au

@R_G

can you please check your main js file doesn’t work

Hey @KetanKumar - sorry, I don’t quite know what you mean?

This is the code I have used in the cookie-banner.liquid snippet:


  This website uses cookies to ensure you get the best experience on our website.
  
  

And this is the JS in the theme.liquid:

{% render 'cookie-banner' %}
  

@R_G

add this script link before

for example

Thanks @KetanKumar - I just tried this (before the tag in theme.liquid) and it’s still not showing up - any ideas?


@R_G

i think something is wrong your theme or code

It can be done by doing some code customization. please send me a personal message and we can discuss what you’d like

Hi R_G! Did you ever find a solution to this problem? I’m encountering the same exact issue you were having…

@cornelle1

can you please share store url