Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 16:00 10:00 – 14:00 10:00 – 14:00 9:00 – 13:00 9:00 – 13:00 -
- 17:00 – 21:00 15:00 – 19:00 15:00 – 19:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Bucharest (GMT+02:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Mihai Apetrei 1 year, 4 months ago.

Assisted by: Mihai Apetrei.

Author Posts
August 20, 2024 at 11:50 am #16086858

dmitriS-6

Background of the issue:
I previously installed CSS code to change the colours of language switchers with your help, but the new colours appeared to be too blurred on the site. Now I am trying to edit the code and settings myself and face errors.
I am trying to make active language colours as #375c00

The site is hidden link

Symptoms:
I would attach the screenshot where it is said 'You can't do that!' if I could here.

Colours remain the same

Questions:
How can I edit the CSS code to change the colours of language switchers without errors?
Why does the site still show the previous colours after changing the code and settings?

August 20, 2024 at 11:54 am #16086910

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Something might be wrong with the full code.

Can you please let me know if you also tried to add it to your site's backend > Appearance > Customizer > Custom CSS area > and save it?

Please let me know how things go.

Mihai Apetrei

August 20, 2024 at 12:59 pm #16087218

dmitriS-6

Hello Mihai

Thank you for reaching out.
I have not added any code to the site backend, only to WMPL > Languages where the previous consultant from WPML advised )see the screenshot I attached earlier)

As he explained, the site WP CSS code overrided the CSS of WPML, that is why we added this one. But the colour appeared to be not the one I wanted.

And no I have not added any code to WP customiser.

The code that the consultant sent me was with a different colour, I put here #9ed60a colour and it said You can not do it! I guess may be colour setting clash with the ones in the code?

The code is the following:
/* Header color */
#menu-main .wpml-ls-current-language a span, #menu-main .wpml-ls-item a:hover span {
color: #9ed60a !important;
}

/* Footer color */
.wpml-ls-legacy-list-vertical .wpml-ls-current-language a span, .wpml-ls-legacy-list-vertical .wpml-ls-item a:hover span {
color: #000000!important;
}

/* Header margin */
#menu-main .wpml-ls-first-item {
margin-left: 20px !important;
}
.wpml-ls-current-language > a span {
color: #9ed60a !important;
}

August 21, 2024 at 6:30 am #16088746

dmitriS-6

Hello! Can you help with the issue?

August 21, 2024 at 8:43 pm #16092182

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there and thank you very much for the update.

Can you please try to add the code where I mentioned instead of the area where you were trying to add it, just to see if it makes any difference?

Depending on how the current CSS code that comes from the active theme and the active plugins has been implemented, there's a chance that adding the code in the place that I mentioned might help us override the default CSS.

Please let me know how things go.

I will be waiting for your response.

August 23, 2024 at 10:44 am #16098298

dmitriS-6

Hello

I could not answer here, as there was no this option. I have tried what you suggested and it did not help
Can you at least decypher shortly the meaning of each phrase in the code_? (what gadget, header or footer etc?)
I would try to check whether I set the same colours for header, footer and phone?

Thank you!

August 23, 2024 at 9:52 pm #16099622

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

No worries.

If you can share the credentials, I can try the code that you mentioned for you and make sure we try to get it working.

I would like to request temporary access (wp-admin and FTP) to your site so I can better examine the issue. The needed fields are below the comment area. When you log in to leave your next reply, the information you enter is private, meaning only you and I can see and access it.

Our Debugging Procedures

I will check various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to back up the site before providing us access. In the event that we do need to debug the site further, I will duplicate it and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**

- Please back up the site files and database before providing us access.

If you do not see the wp-admin/FTP fields, your post and website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.

The private box looks like this: hidden link

I will be waiting for your response.

PS: Please note that I won't be working over the weekend, but I will be able to get back to you at the beginning of next week.

August 27, 2024 at 10:54 pm #16112275

Mihai Apetrei
WPML Supporter since 03/2018

Languages: English (English )

Timezone: Europe/Bucharest (GMT+02:00)

Hi there.

Unfortunately, these credentials don't work for me.

Can you please check again?

The topic ‘[Closed] changing colours of language switchers’ is closed to new replies.