Jump to content

Change colour on weglot switcher on different pages

Go to solution Solved by tuanphan,

Recommended Posts

Hi 

My language switcher from Weglot is by default white, and for most of my pages it's fine. But some of them have a white background, which makes the language switcher impossible so see. My webpages is: akelaquartet.com and the pages are the three 'last' pages in the menu.


So I want to see if I can make the colour change to black on some specific pages, and stay white on the rest. 

 

Can you guys help me with this matter.

Link to comment
Posted (edited)
3 hours ago, gustavranum said:

My language switcher from Weglot is by default white, and for most of my pages it's fine. But some of them have a white background, which makes the language switcher impossible so see.

Instead of setting the colour of the links to white, try setting them to match the navigationLinkColor so that the links change to match the nav links.

Did this help? Please give feedback by clicking an icon below  ⬇️

Edited by paul2009

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

Thanks for the help, but now it just stays black all the time... 

I removed the:

#weglot-language-da, #weglot-language-en {
  color: white!important;

}

and changed it to the one you sent, but as said, it's just black all the time now...

 

 

Link to comment
  • Solution
On 6/3/2024 at 7:34 PM, gustavranum said:

Thanks for the help, but now it just stays black all the time... 

I removed the:

#weglot-language-da, #weglot-language-en {
  color: white!important;

}

and changed it to the one you sent, but as said, it's just black all the time now...

 

 

You try this CSS code

div.header-display-desktop .weglot-container * {
    color: var(--navigationLinkColor) !important;
}

 

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.