Synchronize Theme options with String Translation
-
Hi,
I have a issues to Synchronize Theme options field with String Translation. I use wpml-config.xml and field in Theme options
In Theme option I have field
<input type="text" value="Call to action Title" id="theme_cta_title" name="theme_cta_title">
My config file look like this:
<wpml-config> <admin-texts> <key name="theme_cta_title" /> </admin-texts> </wpml-config>
and in page.php I have this ( I think this is correct? )
<?php $theme_cta_title = get_option('theme_cta_title'); pll_e($theme_cta_title); ?>
And now, I open my Theme options page, write new string “Test Title” and its show up in String Translation, but problem is when I change it on “String Translation” tab page https://prntscr.com/9s2dql for example I write instead “Test Title” now is “Test Title String tab”, and text in filed on Theme Options page is not changed, is still “Test Title”
- The topic ‘Synchronize Theme options with String Translation’ is closed to new replies.