<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cookie banner custom code for mobile in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210189#M8696</link>
    <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19405"&gt;@Marlene&lt;/a&gt;&lt;/P&gt;&lt;P&gt;it's because of different "browser frameworks". Not each browser works and maps the (s)css the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply replace every&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;background-image: linear-gradient(to right, rgba(0, 0, 0) 50%, rgba(120, 120, 120) 0%)!important;&lt;/PRE&gt;&lt;P&gt;with&lt;/P&gt;&lt;PRE&gt;background: rgba(0,0,0,1);
background: -moz-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(0,0,0,1)), color-stop(100%, rgba(120,120,120,1))) !important;
background: -webkit-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: -o-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: -ms-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#787878', GradientType=1 ) !important;&lt;/PRE&gt;&lt;P&gt;with this it should look in every possible browser(maybe IE 10 and older will still loook sh**ty, but nobody should use this browser anyway&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.hubspot.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 06:58:42 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2018-10-04T06:58:42Z</dc:date>
    <item>
      <title>Cookie banner custom code for mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/209805#M8651</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with our cookie banner. I have add some custom code in the Website-Footer-HTML because we need a special design. On google chrome desktop it looks fine (screenshot 1) bute on safari desktop and on mobile (chrome and safari) I only see a white backround and a white font (screenshot 2). Only the link and the CTA is correct. How can I fix this for safari desktop and for mobile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot 1:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot 1.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/12180iE05EDEFB87EBE9C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot 1.png" alt="screenshot 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screenshot 2:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot 2.png" style="width: 999px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/12179i1F6956927E1F2575/image-size/large?v=v2&amp;amp;px=999" role="button" title="screenshot 2.png" alt="screenshot 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;div#hs-eu-cookie-confirmation.can-use-gradients {&lt;BR /&gt;background-image: linear-gradient(to right, rgba(0, 0, 0) 50%, rgba(120, 120, 120) 0%)!important;&lt;BR /&gt;border-bottom: none;&lt;BR /&gt;box-shadow: none;&lt;BR /&gt;}&lt;BR /&gt;div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner {&lt;BR /&gt;background-image: linear-gradient(to right, rgba(0, 0, 0) 0%, rgba(120, 120, 120) 100%)!important;&lt;BR /&gt;}&lt;BR /&gt;div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner a {&lt;BR /&gt;color: #e30421!important;&lt;BR /&gt;}&lt;BR /&gt;div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner a#hs-eu-confirmation-button {&lt;BR /&gt;color: #ffffff!important;&lt;BR /&gt;border-radius: 0px;&lt;BR /&gt;}&lt;BR /&gt;div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner p {&lt;BR /&gt;font-family: sans-serif!important;&lt;BR /&gt;color: #ffffff!important;&lt;BR /&gt;font-weight: bold!important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Marlene&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 06:53:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/209805#M8651</guid>
      <dc:creator>Marlene</dc:creator>
      <dc:date>2018-10-02T06:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner custom code for mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210152#M8695</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19405"&gt;@Marlene&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please share a link to the page you are working on?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you take a look at the &lt;A href="https://litmus.com/blog/understanding-media-queries-in-html-email" target="_blank"&gt;media queries&lt;/A&gt; for the page to ensure that all &lt;A href="https://www.w3schools.com/cssref/css3_pr_mediaquery.asp" target="_blank"&gt;browsers&lt;/A&gt; are covered?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Jenny&lt;/P&gt;</description>
      <pubDate>Wed, 03 Oct 2018 21:32:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210152#M8695</guid>
      <dc:creator>jennysowyrda</dc:creator>
      <dc:date>2018-10-03T21:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner custom code for mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210189#M8696</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/19405"&gt;@Marlene&lt;/a&gt;&lt;/P&gt;&lt;P&gt;it's because of different "browser frameworks". Not each browser works and maps the (s)css the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply replace every&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;background-image: linear-gradient(to right, rgba(0, 0, 0) 50%, rgba(120, 120, 120) 0%)!important;&lt;/PRE&gt;&lt;P&gt;with&lt;/P&gt;&lt;PRE&gt;background: rgba(0,0,0,1);
background: -moz-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: -webkit-gradient(left bottom, right top, color-stop(0%, rgba(0,0,0,1)), color-stop(100%, rgba(120,120,120,1))) !important;
background: -webkit-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: -o-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: -ms-linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
background: linear-gradient(50deg, rgba(0,0,0,1) 0%, rgba(120,120,120,1) 100%) !important;
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#000000', endColorstr='#787878', GradientType=1 ) !important;&lt;/PRE&gt;&lt;P&gt;with this it should look in every possible browser(maybe IE 10 and older will still loook sh**ty, but nobody should use this browser anyway&amp;nbsp;&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://community.hubspot.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 06:58:42 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210189#M8696</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-10-04T06:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner custom code for mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210198#M8700</link>
      <description>&lt;P&gt;Hi Jenny,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for the links. They are very helpful.&amp;nbsp;I really had to use a&amp;nbsp;webkit based code, which Anton wrotes in his answer above too.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marlene&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 08:21:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210198#M8700</guid>
      <dc:creator>Marlene</dc:creator>
      <dc:date>2018-10-04T08:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner custom code for mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210199#M8701</link>
      <description>&lt;P&gt;Hi Anton,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your help. This webkit based code was the solution. Now it works in safari, and on mobile too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marlene&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 08:22:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/210199#M8701</guid>
      <dc:creator>Marlene</dc:creator>
      <dc:date>2018-10-04T08:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cookie banner custom code for mobile</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/1100600#M41871</link>
      <description>&lt;P&gt;I know it's been a while but&amp;nbsp;you can also look into other cookie banner solutions that are much simpler, and more complete that Hubspot's native solution. As you scale and grow your website, and with &lt;A href="https://www.ketch.com/blog/posts/us-privacy-laws-2025" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;new legislations&lt;/SPAN&gt;&lt;/A&gt; being passed in the US and around the globe, you will need a more robust solution to respect your users consent everywhere, called &lt;A href="https://www.ketch.com/blog/posts/consent-management" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;consent management platform&lt;/SPAN&gt;&lt;/A&gt; (CMP). You can start with &lt;A href="https://www.ketch.com/ketch-free-cookie-banner" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;free CMP&lt;/SPAN&gt;&lt;/A&gt; solutions first too that &lt;A href="https://www.ketch.com/blog/posts/how-to-add-cookie-banner-wordpress" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;work great for wordpress&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:01:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Cookie-banner-custom-code-for-mobile/m-p/1100600#M41871</guid>
      <dc:creator>StephaneLM</dc:creator>
      <dc:date>2025-01-28T15:01:21Z</dc:date>
    </item>
  </channel>
</rss>

