• I am currently implementing the switchin a custom location within the header, and using your pll_the_languages() method, and following the documentation, but it doesnt seem to work as noted.

    <?php pll_the_languages([
        'dropdown' => 1,
        'show_names' => 0,
        'show_flags' => 1,
        'hide_current' => 1,
    ]);?>

    The drop down setting works, it switches it to a default select drop down, but then it still shows the names, doesn’t show the flags, and the drop down is just a generic select unstyled.

    Generated HTML looks like the below.

    <select name="lang_choice_1" id="lang_choice_1">
    	<option value="en" selected="selected">English</option>
    	<option value="es">Espa?ol</option>
    	<option value="fr">Fran?ais</option>
    
    </select>
    
    <script type="text/javascript">
      //<![CDATA[
      var urls_1 = {"en":"http:\/\/dev.darksword-armory.com\/","de":"http:\/\/dev.darksword-armory.com\/de\/","es":"http:\/\/dev.darksword-armory.com\/es\/","fr":"http:\/\/dev.darksword-armory.com\/fr\/"};
      document.getElementById( "lang_choice_1" ).onchange = function() {
        location.href = urls_1[this.value];
      }
      //]]>
    </script>

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same issue, the flags are only shown when you dont use the dropdown option…

    anonymized-13603639

    (@anonymized-13603639)

    It’s not a bug, it’s a feature: Combination dropdown and flags is not possible.
    You can not show flags in a dropdown.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘pll_the_languages() lacking formatting’ is closed to new replies.