Custom css wpml

Bonjour, quand je mets un css personnalisé sur une page traduite (WPML) le code se transforme avec des petits “n” et le code ne fonctionne pas. je veux mettre .entry-thumb {
display: block;
position: relative;
background-color: #000;
display: none;
} et sur la page en anglais ca fait (image en pièce jointe)

Hello, when I put a custom css on a translated page (WPML) the code turns with small “n” and the code does not work. I want to put .entry-thumb {
display: block;
position: relative;
background-color: #000;
display: none;
} and on the English page it does (image attached)

Hi @zipe3,

Thanks for reaching out.
I would suggest you go through the following thread on a similar topic, which may help you with this.

Thanks

thank you, I understand the principle I think, but I’m not sure to write my css in the right place and in the right way because it does not work.
Here is what i wrote in the custom css page in english

.entry-thumb:lang(en) {
display: block;
position: relative;
background-color: #000;
display: none;
}
Can you go see. Here is the link of the page in English

the connection info is in the secure not above
Thank you very much for your help

Hello @zipe3,

Before we proceed to troubleshoot the issue, can you please update your WPML plugin version to the latest? You can check out the change here:

Kindly let us know how it goes.

the verification is done and it is up to date. I also made a backup of the site just in case. Tank you

I finally solved my problem by installing the plugin Conditionally display featured image on singular posts and pages. thank you :slight_smile:

Hello @zipe3,

We are glad that you have figured out a way to resolve the issue. Thank you very much for letting us know.
Please feel free to create another thread if you have any other enquiry.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.