Footer text of Themeoptions in string translations
-
Hi Chouby,
I have installed your Polylang plugin on my local testwebsite to make it work for every part of the website before installing and configure it on my online website.
It works good, but I want to get my footer text, which I have to define in the theme options in wordpress, in the strings translations page of your plugin. I use a purchased theme by the way.
This is the code in my footer.php:
$show_footer = $data[‘show_main_footer’];
pll_register_string(‘show_footer’, $show_footer)and this in my template file:
<?php get_footer (pll_($show_footer)); ?> (without the get_footer and with echo it doesn’t appear on the webpage)Unfortunately, the string doesn’t appear in the strings translation page of your plugin. What am I doing wrong?
I tried different solutions from the forum, but none of them worked.
Thank you for your help.
Marielle van Dam
- The topic ‘Footer text of Themeoptions in string translations’ is closed to new replies.