Andas Posted September 17 Share Posted September 17 Site URL: https://www.karinaklaus.com/de/home Hello, Is it possible to create a multilingual cookie banner that changes language based on the visitor’s language preference? I was able to do that for the footer and header, and I also need it for the cookie banner and manage cookies pop-up https://www.karinaklaus.com/de/home password hello Thank you! Link to comment
tuanphan Posted September 19 Share Posted September 19 Try this to Website Tools > Custom CSS body:has(a.btn[href="/de/coaching"]) .disclaimer-text p { visibility: hidden; } body:has(a.btn[href="/de/coaching"]) .disclaimer-text p:before { content: "enter DE text here"; visibility: visible; } body:has(a.btn[href="/de/coaching"]) button.manage span { visibility: hidden; position: relative; } body:has(a.btn[href="/de/coaching"]) button.manage span:before { visibility: visible; content: "DE Manage"; position: absolute; left: 50%; transform: translateX(-50%); width: 100%; } body:has(a.btn[href="/de/coaching"]) button.accept span { visibility: hidden; position: relative; } body:has(a.btn[href="/de/coaching"]) button.accept span:before { visibility: visible; content: "DE Accept"; position: absolute; left: 50%; transform: translateX(-50%); width: 100%; } 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
Andas Posted Wednesday at 11:21 AM Author Share Posted Wednesday at 11:21 AM Thank you, that worked Is it possible to translate the manage cookie pop-up banner too? Link to comment
tuanphan Posted Friday at 09:10 AM Share Posted Friday at 09:10 AM On 10/9/2024 at 6:21 PM, Andas said: Thank you, that worked Is it possible to translate the manage cookie pop-up banner too? Use this format body:has(a.btn[href="/de/coaching"]) { enter css code in this thread https://forum.squarespace.com/topic/318552-share-change-some-text-in-manage-cookies-popup/ } Find code in this thread 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment