The display of the "press" category page (https://www.new.concepto.fr/en/topic/press/) of the blog is not good in English version: the menu is below the text (so the block comes at the very top) and the logo is not the right color. In French no problem. I just added the category to the English menu.
In portfolio options, I created a text (title) in French. How to translate it in English version?
1. I have managed to fix this issue. This didn't happened to Kalium before but I have added an extra check in code to verify theme options that are inherited, because in your case Polylang points different objects and we haven't predicted this from happening.
2. For this please read the Polylang docs because theme options are translatable and Polylang should properly parse and read wpml-confix.xml in our theme.
About the 2nd question (theme option translation), I think I was not clear, sorry. I put a text in portfolio options (see attached). Does Polylang know how to translate the content of this field ?
Regarding theme options, these are translatable with string translation in WPML, so the same should be with Polylang String Translation. Have you tried it?
- 1st step : theme options, I fill in the title and description part of the portfolio settings / other settings
- 2nd step, I go to Strings translation / Kalium: already what I put on the options does not appear, I have "portfolio" in the title and "portfolio description" in the description. I change title and description here, in both languages (my picture below). - On the display, there is ONLY what I put in the "theme option" that appears, so in French. If I delete the content in the theme options and leave the strings in the translation, nothing is displayed on the page. If I modify the description string in the string field, no change to the display.
I have a lot of problems with translations:
Thanks
Plus4
Hi Plus4,
1. I have managed to fix this issue. This didn't happened to Kalium before but I have added an extra check in code to verify theme options that are inherited, because in your case Polylang points different objects and we haven't predicted this from happening.
So now these pages inherit the same options:
https://www.new.concepto.fr/en/topic/press/
https://www.new.concepto.fr/sujets/presse/
2. For this please read the Polylang docs because theme options are translatable and Polylang should properly parse and read wpml-confix.xml in our theme.
Hi Arlind,
Thanks a lot for the 1st point.
About the 2nd question (theme option translation), I think I was not clear, sorry. I put a text in portfolio options (see attached). Does Polylang know how to translate the content of this field ?
Hi plus4,
Regarding theme options, these are translatable with string translation in WPML, so the same should be with Polylang String Translation. Have you tried it?
Hi Arlind,
Yes (see image attached) but does'nt work.
I have just tried it:
https://d.pr/v/aQtJoh
As you can see it works on my side!
Very strange, why in your site it works differently!
A few details that may help you:
- 1st step : theme options, I fill in the title and description part of the portfolio settings / other settings
- 2nd step, I go to Strings translation / Kalium: already what I put on the options does not appear, I have "portfolio" in the title and "portfolio description" in the description. I change title and description here, in both languages (my picture below).
- On the display, there is ONLY what I put in the "theme option" that appears, so in French. If I delete the content in the theme options and leave the strings in the translation, nothing is displayed on the page. If I modify the description string in the string field, no change to the display.
Hi plus4,
I have just tried it:
https://d.pr/v/aQtJoh
As you can see it works on my side!
Very strange, why in your site it works differently!
Hi Arlind,
I tried to deactivate all plugins. None of the plugins cause this, it's only by deactivating / reactivating Portfolio type.
Any way with the .pot file (poedit)? I guess not...
Hi plus4,
I had to rename theme mods reference key because you are using your own personalized child theme with name "concepto":
(view large image)
And I have then translated the texts once again by filtering entries only for "concepto" theme:
(view large image)
And the result is:
(view large image)
For more please watch this video to see the entire process:
https://d.pr/v/6IKuoq
You are the BEST!
Thank you thank you thank you. For your patience and your determination.
Have a good day :-)
I'm happy to hear those kind words
Have a great day!
Will mark this ticket as solved from here.