Make Cookie bar sma...
 
Notifications
Clear all

Make Cookie bar smaller on mobile

2 Posts
2 Users
0 Reactions
390 Views
(@ilyeszoltan)
Estimable Member
Joined: 4 years ago
Posts: 80
Topic starter  

Hi Katrine,

Is there a way to make  on mobile the cookie bar to be smaller.( it covers 1/4 of screen)

  • Thank you

   
Quote
plaktheme
(@plaktheme)
Reputable Member
Joined: 5 years ago
Posts: 0
 

Thank you @ilyeszoltan for posting in a new thread, here is how to reduce the GDPR banner size in mobile only.

  • From your Shopify dashboard, click Online store > Actions > Edit code
  • Open the file GDPR.liquid
  • Replace the entire first line (beginning with <style>) with this code
<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}@media (max-width:768px){.privacy-banner{font-size:12px;padding:1px}}.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}@media (max-width:768px){.privacy-banner a{margin:5px auto 0 auto;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}@media (max-width:768px){.privacy-banner button{height:15px;width:15px}}.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}.banner-accept{padding:5px 13px}}</style>
  • Click Save

 

Note that the GDPR will be showed only once to the customer if they click on Accept button, it has no impact on user experience whatever its size is.

Best regards,
Katrine

Katrine | Technical support at Plak, Scrowp & Vantout
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as a Solved Solution


   
ReplyQuote
Share:

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