Is there a way to select the build in Shopify page when setting up the GDPR popup? I am trying to locate my privacy policy page when searching for it under GDPR but the actual real page at my website for the privacy policy is not coming up.
Thanks!
Hi Aden,
Jasmine from Plak theme support here,
If I understand well, you are unable to see the Privacy Policy page (settled from the legal pages on Shopify) on the GDPR feature.
By default, the box to search pages doesn't display the legal pages, since this is controlled internally by Shopify and it is not theme related.
If you would like to link the GDPR feature to your privacy policy, I invite you to follow these steps to add the its link manually to the feature.
- From your Shopify admin panel, click Online store > Actions > Edit code
- Open the file GDPR.liquid
- Replace the entire content of this file with this one
<style>*{box-sizing:border-box}.privacy-banner{position:fixed;bottom:0;left:0;width:100%;max-width:100%;padding:1rem .5rem;background:#fff;z-index:1030;color:#000;font-size:14px;margin:0;display:none border-top: 2px solid #ff910e}.banner-wrapper{max-width:1200px;width:100%;margin:0 auto;display:flex;position:relative;align-items:center}.privacy-banner p{margin:0;color:#000;text-align:center}.privacy-banner .banner-wrapper p{padding-right:3rem}.privacy-banner a{text-decoration:none;margin:20px auto 0 auto;display:block;max-width:150px}.privacy-banner a:hover{text-decoration:underline}.privacy-banner button{position:absolute;right:5px;top:calc(50% - 12.5px);color:#fff;outline:0;height:25px;width:25px;border:0;display:flex;align-items:center;justify-content:center;font-size:1.35rem;font-weight:700;border-radius:50%;text-align:center;padding:0;line-height:1;background:#000;cursor:pointer}.banner-learn{color:#000}.banner-accept{padding:7px 15px;color:#fff;border-radius:5px;background:#ff910e}@media (min-width:768px){.privacy-banner{padding:1.5rem .5rem}.privacy-banner a{display:inline-block;margin:0 10px}}</style> <div class="privacy-banner"> <p> {{settings.gdpr_txt}} <a class="banner-accept" href="#" title="{{ 'general.gdpr.accept' | t }}"> {{ 'general.gdpr.accept' | t }}</a> <a class="banner-learn" href="https://plak-themev1-demo-store.myshopify.com/policies/privacy-policy" title="{{ 'blogs.article.read_more' | t }}">{{ 'blogs.article.read_more' | t }}</a> </p> </div> <script>localStorage.bannerClosed?$(".privacy-banner").css("display","none"):$(".privacy-banner").css("display","inherit"),$(".privacy-banner button").click(function(){$(".privacy-banner").css("display","none"),localStorage.bannerClosed="true"}),$(".banner-accept").click(function(){$(".privacy-banner").css("display","none"),localStorage.bannerClosed="true"}),navigator.userAgent.match(/Opera|OPR\//)&&$(".privacy-banner").css("display","inherit");</script>
- Replace the below link with your current Privacy Policy Legal page
https://plak-themev1-demo-store.myshopify.com/policies/privacy-policy
- Click Save
Let me know if you need any further help with this Feature
Best regards,
Jasmine | Plak theme support
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as a Solved Solution
Thank you Jasmine! I have made the changes but the banner is no longer popping up on the website. I tried using two different browsers with cleared cache and incognito windows.
Thank you Jasmine! I have made the changes but the banner is no longer popping up on the website. I tried using two different browsers with cleared cache and incognito windows.
Hi Aden,
I checked your site, the banner appears on all pages except the homepage (for speed purpose and since data won't be collected on homepage)
In case you would like the banner to appear on homepage too, I invite you to follow these steps :
- From your Shopify dashboard, click Online store > Actions > Edit code
- Open the file theme.liquid
- Replace this code
{% if settings.enable_gdpr and template != 'index' %} {% include 'GDPR' %} {% endif %}
- With this one
{% if settings.enable_gdpr %} {% include 'GDPR' %} {% endif %}
- Click Save
Don't hesitate to reach to us again if you need any further assistance 🙂
Thank you! I got it fixed. For anyone reading this in the future, being married to an attorney has taught me a few things. To be GDPR compliant you must have this code included on your homepage if you have any sort of collection box for people to type in their email addresses (Plak has a subscription box in the footer on the homepage), or any sort of entry pop to subscribe to your email list, or any tracking cookies at all that will be placed in users browsers (google analytics, facebook, etc). Of course any extra code will slow down your website but all it takes is one person to sue you. Better safe than sorry!
Thank you! I got it fixed. For anyone reading this in the future, being married to an attorney has taught me a few things. To be GDPR compliant you must have this code included on your homepage if you have any sort of collection box for people to type in their email addresses (Plak has a subscription box in the footer on the homepage), or any sort of entry pop to subscribe to your email list, or any tracking cookies at all that will be placed in users browsers (google analytics, facebook, etc). Of course any extra code will slow down your website but all it takes is one person to sue you. Better safe than sorry!
Thanks for the remark Aden, I will rise this information to my superiors 🙂
Welcome to the Shopify Forum Community provided by Plak ThemeLLC, a place where you can discuss about eCommerce and Shopify, solve technical issues, get help with Shopify Design, Apps integration, Marketing, Facebooks ad, Google ads and more.
Before posting, we invite you to read and follow the forum rules | We also support any questions related to Free Shopify themes :Dawn, Express, Minimal, Brooklyn, Narrative, Supply, Debut, Venture, Boundless and Simple