pll_the_languages() lacking formatting
-
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>
- This topic was modified 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by .
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘pll_the_languages() lacking formatting’ is closed to new replies.