• I am using following code for displaying languages flag and their names in my website header. I wrote this code in header.php, but using this code only display languages in one page not in other pages. I have two languages: English and Swedish. In English page flags are not showing while in Swedish page flags are shown. Can anybody throw light on this.
    <ul id="ul_lang"><?php pll_the_languages(array('show_flags'=>1,'show_names'=>1));?></ul>

Viewing 1 replies (of 1 total)
  • Thread Starter amKaushal

    (@amkaushal)

    I am reposting the issue. I have an ‘home’ and ‘about us’ pages of the company which are in both languages. The plugin is showing the flags for ‘about us’ page in both languages but not for ‘home’ page. What could be the reason

Viewing 1 replies (of 1 total)

The topic ‘polylang add flags and names to header.php’ is closed to new replies.