Multilanguage footer page with PolyLang

Posted in: Newspaper
Post count: 6

Hello,

there is some incompatibilty into codes that prevent PolyLang to work properly with Newspaper (I know it’s not officialy compatible) just about footer as didn’t have an option to set it (there isn’t into string translation or elsewhere).
Digging the web I found multiple times that this code works

<?php if(get_locale() == ‘fr_CA’) : ?>
--Content in fr_CA--
<?php endif; ?>
<?php if(get_locale() == ‘en_CA’) : ?>
--Content in en_CA--
<?php endif; ?>

But I’m not a PHP developer so I didn’t know how to integrate properly into Newspaper footer.php code, I can only see that tds_footer_page must contain the footer page ID.

Thank you for any help you can give me.

Post count: 35449

Hi,

You can find the footer.php in wp-content/themes/Newspaper/footer.php I think that code can be set at the beginning of file or at end of it.

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.