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

TMNR on "[Plugin: Polylang] Using pll_the_languages(); in Twenty Eleven child theme"

$
0
0

***INFO***

Twenty Eleven Child Theme
No other plugins

1. Permalink settings - default
2. Static front page is used
3. Settings:
Detect browser language - N
The language is set from content - Y
Remove /language/ in pretty permalinks - Y
Hide URL language information for default language - N
When using static front page... - N
Allow to synchronize categories - N

I've read the documentation.

***Question***
Hi,
I have successfully set up 3 languages and it works fine with Displays a language switcher at the end of the menu option. But i want to add language chooser to my header. In documentation there's a mention of pll_the_languages(); function and some examples, but i can't seem to get it to work.

I have created header.php in my child theme and tried to add one of the examples, but it breaks the site. What am i doing wrong? Am i missing something?

http://wordpress.org/extend/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



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