Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Chouby on "[Plugin: Polylang] Howto change Footer content based on language in use"

$
0
0

The way you use is correct, except that you have syntax errors:

<?php $currentlang = pll_current_language();
if($currentlang=="fi"):?>
	footer content with lang 'fi' comes here
<?php elseif($currentlang=="en"):?>
	footer content with lang 'en' comes here
<?php endif; ?>

While developping, you should set WP_DEBUG to true.


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>