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.

This thread is resolved. Here is a description of the problem and solution.

Problem:
User wanted to use different color in for some texts in different languages.

Solution:

Add this code to WPML > languages > Language switcher options > Additional CSS:

html[lang="ja"] .site-branding h1 a, html[lang="ja"] p.site-description { color: #fff; }

Change the color code to the color you want.

This topic contains 9 replies, has 2 voices.

Last updated by anthonyL-13 3 weeks, 4 days ago.

Assigned support staff: Riffaz.

Author Posts
September 12, 2019 at 11:42 am #4560651

anthonyL-13

Tell us what you are trying to do?Need to change the font color for the title and tagline. How can this be done?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

September 12, 2019 at 11:56 am #4560733

anthonyL-13

The site page is hidden link

September 12, 2019 at 12:12 pm #4560821

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

Thank you for contacting WPML support.

Normally, when you translate the page or post then style of the page will be copied to the translated page/post.
So if you want to change this you may have to do some custom css or your theme should allow you to do this via the theme option.

Is this the title and tagline you are asking about? hidden link

Also, please provide your site wpml debug info for better and faster support: https://wpml.org/faq/provide-debug-information-faster-support/

I am enabling the debug info field for next reply.

Regards,
Riffaz.

September 12, 2019 at 12:22 pm #4560845

anthonyL-13

I get an error when I try to send this the debug info....

I am talking about the title and tagline in the header. You cannot see it now because it is the same color as the header.

I need to change the color so you can see the words....

September 12, 2019 at 12:37 pm #4560927

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

I get an error when I try to send this the debug info....
- what is the error?
- please show a screenshot

I am talking about the title and tagline in the header. You cannot see it now because it is the same color as the header.
- do you see this in different color in your English site?
- if yes, please show a screenshot

Regards,

September 12, 2019 at 12:52 pm #4560979

anthonyL-13

The problem is that it is the same color on the Japanese site as the English site. That is why I need to change the color on the Japanense site!! Isnt there some code or some other way I can change the font color?? hidden link
hidden link

error message is below

Access Denied - Sucuri Website Firewall
If you are the site owner (or you manage this site), please whitelist your IP or if you think this block is an error please open a support ticket and make sure to include the block details (displayed in the box below), so we can assist you in troubleshooting the issue.

Block details:
Your IP: 180.221.246.135
URL: wpml.org/forums/topic/different-font-color-for-title-and-tagline/
Your Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
Block ID: SQLi17
Block reason: SQL injection was detected and blocked.
Time: 2019-09-12 08:50:13
Server ID: 16009

September 12, 2019 at 1:18 pm #4561135

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

You mean this, right? hidden link

Add this code to WPML > languages > Language switcher options > Additional CSS:

html[lang="ja"] .site-branding h1 a, html[lang="ja"] p.site-description { color: #fff; }

Change the color code to the color you want.

Let me know how it goes.

Regards,
Riffaz.

September 13, 2019 at 12:06 am #4564477

anthonyL-13

Thank you. That worked well.

The other issue related to why I cannot provide bug information. Ever since I installed WPML on this site, I get the insecure scripts warning.

What can be done about that?

September 15, 2019 at 8:53 am #4574211

Riffaz
Supporter

Languages: English (English )

Timezone: Asia/Colombo (GMT+05:30)

Hi,

You are welcome.

The other issue related to why I cannot provide bug information. Ever since I installed WPML on this site, I get the insecure scripts warning.
- this is a different issue.
- please open a new ticket to avoid the confusion and to reduce the waiting time.

Regards,
Riffaz.

September 18, 2019 at 4:19 am #4592395

anthonyL-13

My issue is resolved now. Thank you!