Hi
What did you put in $footer-text?
Hi Chrysti,
My function in functions.php:
pll_register_string('footer_text', 'My test text', 'Divi');
Is the $footer-text value is pll_register_string('footer_text', 'My test text', 'Divi'); ?
Please try with:
pll_e( ‘footer_text’ )
That prints “footer_text” to the footer, not “My test text”. Thank you for your continued help:)
What did you fill in your Strings translations option for footer_text (Settings > Languages > Strings translation tab)?
That was automatically populated with “My test text”. I clicked save button anyhow to see if that would instantiate the text. Nothing. I reverted back to the default theme footer code and asked the theme author for assistance. This should show in the Strings Translation. The only option I have for string translation with this theme is the divi_date_format this is also the only option in the wpml-config.xml
file aside from the SEO options which I am not using.
Could you paste here the wpml-config.xml?
It does help.
Go in your database in the wp_options table and try to find the option name where are stored all the theme options.
Copy/paste here the option_value and give me the option_name.
What option are you looking for, as I do not understand what you are asking me to find. There are many option for the Divi them in the options table. I have also contacted the theme author with this issue and was told that it is a plugin issue and that I should use WPML. So, I am hoping you can resolve this issue. Thanks:)
I am trying this again. Please see my code blow. It doesn’t work and nothing is shown but empty paragraph tags in source code. Any ideas?
functions.php:
if(function_exists('pll_register_string')){
pll_register_string($copyright, 'Copyright © 1999 - 2015 My Company', 'ThemeName');
}
footer.php:
<p id="footer-info"><?php pll_e($copyright); ?></p>
There a short tutorial to use pll_register_string and pll_e: http://nimb.ws/vNVnMf
Does it help?
Yes this fixed the issue, thank you so much!