Jump to content

Cookie banner

Recommended Posts

Posted

Site URL: https://www.discoverthespots.com/en

Hello,

i have a multilingual website and I would. like to know how to edit the cookie banner so that when on the /en pages the text shows in English while in the /de pages in German. 

Is it possible to hide .sqs-cookie-banner-v2-text and then put an :after in the code injection of certain pages? Or maybe to hide part of the next inserted?

Ive tried writing in in many ways but I cannot seem to figure it out. 

password:rome2020

thank you!

C

  • 5 months later...
  • Replies 4
  • Views 1.5k
  • Created
  • Last Reply
Posted
On 1/8/2021 at 5:33 PM, pramirol said:

Hello @tuanphanyou are always a saviour, my website is:

https://www.simpledomus.com/

I am still working on the translation of the website so I am not sure if it can be done already.

 

Thank you so much for your help in advance

Hi. Add this code to Page Header

<style>
  /* Cookies banner text */
.sqs-cookie-banner-v2-text p {
    font-size: 0;
}
.sqs-cookie-banner-v2-text p:nth-child(2):before {
    content: "new text";
    font-size: 12px;
}
/* Cookies banner link */
.sqs-cookie-banner-v2-text p a {
    font-size: 0;
}
.sqs-cookie-banner-v2-text p a:before {
    font-size: 12px;
    content: "link new";
    margin-left: 2px;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.