Dear Florian, Dragos or colleague,
I added tp-en resp. tp-nl as suggested in CSS Class field of the language switcher menu items, and added the following code in the Extra CSS:
.translatepress-en_US .tp_en,
.translatepress-nl_NL .tp_nl
{ display: none; }
However, both flags remain visible. Something strange is happening in the CSS Class fields in the language switcher menu items:
If I enter:
trp-language-switcher-container tp_nl
and close and re-open this field, it then says:
trp-language-switcher-container tp_nl trp-language-switcher-container
If I close and re-open again it says:
trp-language-switcher-container tp_nl trp-language-switcher-container trp-language-switcher-container”
So for some reason it keeps on adding “trp-language-switcher-container”. For testing purposes, I cleared these CSS Class fields in the menu and then only entered “tp-en”. If I close and re-open the field, it then says: “tp-en trp-language-switcher-container”
I also had my website hosting provider look into this issue. He also followed the steps on https://translatepress.com/docs/developers/show-opposite-language-in-language-switcher/ but with the same outcome. They suspect that the code may be outdated.
Can you please look into what the problem is? Or better: the solution!?
Many thanks.
Kind regards,
Rob
-
This reply was modified 4 years, 11 months ago by
rhpg.