Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Support Chrystl

    (@chrystl)

    Hi
    What did you put in $footer-text?

    Thread Starter clane_workforce

    (@clane_workforce)

    Hi Chrysti,

    My function in functions.php:

    pll_register_string('footer_text', 'My test text', 'Divi');

    Plugin Support Chrystl

    (@chrystl)

    Is the $footer-text value is pll_register_string('footer_text', 'My test text', 'Divi'); ?

    Thread Starter clane_workforce

    (@clane_workforce)

    yes

    Plugin Support Chrystl

    (@chrystl)

    Please try with:
    pll_e( ‘footer_text’ )

    Thread Starter clane_workforce

    (@clane_workforce)

    That prints “footer_text” to the footer, not “My test text”. Thank you for your continued help:)

    Plugin Support Chrystl

    (@chrystl)

    What did you fill in your Strings translations option for footer_text (Settings > Languages > Strings translation tab)?

    Thread Starter clane_workforce

    (@clane_workforce)

    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.

    Plugin Support Chrystl

    (@chrystl)

    Could you paste here the wpml-config.xml?

    Thread Starter clane_workforce

    (@clane_workforce)

    Plugin Support Chrystl

    (@chrystl)

    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.

    Thread Starter clane_workforce

    (@clane_workforce)

    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:)

    Thread Starter clane_workforce

    (@clane_workforce)

    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>

    Plugin Support Chrystl

    (@chrystl)

    There a short tutorial to use pll_register_string and pll_e: https://nimb.ws/vNVnMf

    Does it help?

    Thread Starter clane_workforce

    (@clane_workforce)

    Yes this fixed the issue, thank you so much!

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Theme translate’ is closed to new replies.