Hello
If you speak about static strings already provided by your theme: you can use Codestyling Localization to do this.
If you speak about strings that you entered in theme options: you can create a wpml-config.xml or use the functions pll_register_string and pll__ . By these both way you will be able to translate your theme strings in Settings->Languages->Strings translations.
There are tons of examples in the forum on how to adapt themes or plugins.
Hello
If you speak about static strings already provided by your theme: you can use Codestyling Localization to do this.
If you speak about strings that you entered in theme options: you can create a wpml-config.xml or use the functions pll_register_string and pll__ . By these both way you will be able to translate your theme strings in Settings->Languages->Strings translations.
There are tons of examples in the forum on how to adapt themes or plugins.
Thread Starter
Aniti
(@aniti)
Im not coder, so I made so stupid mistake><
I tried the function
pll_register_string($name, $string, true);
without inserting the name
But finally I get it.
For someone who will have the same question
now I have
pll_register_string('header_text', 'title', true);
in my functions.php
and
<h3 ><?php pll_e('title'); ?></h3>
in my front-page.php
it was so simple><
I should study coding~
Thank you!