Jump to content

[Share] Change some text in Manage Cookies Popup

Recommended Posts

A member asked me this and I can't find an option to change text, so I wrote these code, to change some text in Manage Cookies Popup.

If it doesn't work, you can send site url, I will check again.

image.png.f02b101d3ad56cce6f01030675728a86.png

Use code to Website Tools > Custom CSS box.

#1. Manage Cookies text

/* Manage Cookies */
.manage-cookies-overlay h3 {
    visibility: hidden;
}
.manage-cookies-overlay h3:before {
content: "New Title";
visibility: visible;
}

image.thumb.png.d96a3639ef1377367022f2b4b8ce16cc.png

#2. Necessary

/* Necessary */
.category-selection:nth-child(2) h4 span {
    visibility: hidden;
}
.category-selection:nth-child(2) h4 span:before {
    visibility: visible;
    content: "New necessary text";
}
/* Always on */
.category-selection:nth-child(2) p {
    visibility: hidden;
}
.category-selection:nth-child(2) p:before {
    visibility: visible;
    content: "new always on text";
}
p.category-description[id*="r1"] {
    visibility: hidden;
}
p.category-description[id*="r1"]:before {
    visibility: visible;
    content: "new neccessary description text";
}

image.thumb.png.1dbc1296e9beabc747294f8f81095a18.png

#3. Performance and analytics

/* Performance and analytics */
.category-selection:nth-child(5) h4 span {
    visibility: hidden;
}
.category-selection:nth-child(5) h4 span:before {
    visibility: visible;
    content: "New performance text";
}
p.category-description[id*="r2"] {
    visibility: hidden;
}
p.category-description[id*="r2"]:before {
    visibility: visible;
    content: "new performance description text";
}

image.thumb.png.e65e4ff7026a1ce18dffda853c91af57.png

#4. Advertising

/* Advertising */
.category-selection:nth-child(8) h4 span {
    visibility: hidden;
}
.category-selection:nth-child(8) h4 span:before {
    visibility: visible;
    content: "New advertising text";
}
p.category-description[id*="r3"] {
    visibility: hidden;
}
p.category-description[id*="r3"]:before {
    visibility: visible;
    content: "new advertising description text";
}

image.thumb.png.be9e36ab3dfbf2d29ee6d434444e2154.png

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!)

Link to comment
  • Replies 8
  • Views 828
  • Created
  • Last Reply

Top Posters In This Topic

5 hours ago, Martines___24 said:

Hello, could I ask you how to change the texts – 2x "On" and the text of the "Save preferences" button? We have a website in another language and we cannot change these things. Thank you very much.

You can use this CSS code

/* On text */
.manage-cookies-overlay h4[id*="r2:-title"]+div>p {
    visibility: hidden;
}
.manage-cookies-overlay h4[id*="r2:-title"]+div>p:before {
    visibility: visible;
    content: "new on text";
}
.manage-cookies-overlay h4[id*="r3:-title"]+div>p {
    visibility: hidden;
}
.manage-cookies-overlay h4[id*="r3:-title"]+div>p:before {
    visibility: visible;
    content: "new on text text text 2";
}
/* button */
button.save span {
    font-size: 0;
}
button.save span:before {
    content: "new button text";
    font-size: 16px;
}

image.png.09950d7d6a52a37b2e9f447139fff750.png

image.png

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!)

Link to comment
  • 5 weeks later...

Hello, I am just looking for this solution. I have applied the codes but the changes are not displayed. I am looking to increase the size of the titles and put them in capital letters, while the body text is reduced in size, as well as replacing the word "enabled" with ON. I am sharing a screenshot so that the mismatch can be seen in the mobile and desktop versions.

The site is: www.networkingec.com

Pasword: watf1

Link to comment
11 hours ago, Mariffer said:

Hello, I am just looking for this solution. I have applied the codes but the changes are not displayed. I am looking to increase the size of the titles and put them in capital letters, while the body text is reduced in size, as well as replacing the word "enabled" with ON. I am sharing a screenshot so that the mismatch can be seen in the mobile and desktop versions.

The site is: www.networkingec.com

Pasword: watf1

How to open Manage Cookies Popup on your site?

image.png.75cdcecc380d3f1af53259a7548d499f.png

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!)

Link to comment

@Tuanfan   I have applied the codes but the changes are not displayed. I am looking to increase the size of the titles and put them in capital letters, while the body text is reduced in size, as well as replacing the word "enabled" with ON. I am sharing a screenshot so that the mismatch can be seen in the mobile and desktop versions.

Movil-Cookies.png

Desktop-Cookies.png

Link to comment
19 hours ago, Mariffer said:

@Tuanfan   I have applied the codes but the changes are not displayed. I am looking to increase the size of the titles and put them in capital letters, while the body text is reduced in size, as well as replacing the word "enabled" with ON. I am sharing a screenshot so that the mismatch can be seen in the mobile and desktop versions.

Movil-Cookies.png

Desktop-Cookies.png

How to open this cookies popup? 

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!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • 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.