Thread Starter
kwiecu
(@kwiecu)
Shall I post it on the theme forum?
I presume you don’t know how to fix it, do you?
Well, try to put this:
<?php pll_the_languages(array(‘show_flags’=>1,’show_names’=>1));?>
just change the value of “show_names’=>0” to “1” – and the name of the lang will be displayed.
It is explained in documentation. As I see you have to paste it in header.php
Plugin Author
Chouby
(@chouby)
The problem is that you are attempting to display flags (images) in a select dropdown. That’s a known limitation of html (not the fault of Polylang or Fruitful) which cannot display images in select dropdowns. So either you choose to display names and *not* flags in your menu. Or as suggested by MiroslavR, you move the language switcher outside the menu (it’s harder to achieve a good result if you haven’t html/css background).
Thread Starter
kwiecu
(@kwiecu)
What exactly shall I do?
Ad this code to header.php?
<?php pll_the_languages(array('show_flags'=>0,'show_names'=>1));?>
The problem is that even if I try to display only language name it isn’t displayed in a select drop-down.
Plugin Author
Chouby
(@chouby)
There are two ways of displaying the languages switcher in menu with fruitful.
The fruitful way: enable “Multilingual Switch in Header” in theme options->general. This way displays the language switcher only for big screens and not for mobile screens. This seems to be intentionnaly done like this by the theme author. You can ask him to confirm.
The Poylang way: setup a language switcher in menus as you do with other menu items. This works (I tested it) also in mobile menu, provided that you choose to display names.
I don’t recommend using the pll_the_languages function if you don’t know html/css.
Thread Starter
kwiecu
(@kwiecu)
Any way to display flags only for big screens and only names for small screens?
Plugin Author
Chouby
(@chouby)
That would require php coding.