Plugin Author
Chouby
(@chouby)
Hi!
As stated in the documentation,
Important: When using the language switcher as a dropdown, you must provide yourself the action attached to the language switching. If you want the same comportment as provided by the widget, you can find the corresponding code in the file polylang/include/widget.php
Thanks for your reply Chouby.
But I believe it was working before… Well, maybe not, I’ve already tried so many things.
But there is no polylang/include/widget.php…
Do you mean widget-languages.php?
Which piece of code should I copy? Is it the javascript?
Btw, which format would you recommend if I want a switcher like this one (http://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2009/10/buddypress-bar.jpg) or this one (http://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2009/12/language-switcher-designer.png)?
Plugin Author
Chouby
(@chouby)
Yes. I changed the name of the file since I wrote the code.
Yes you have to copy the javascript and the way it is prepared. Here is the result of a quick search in the forum: http://wordpress.org/support/topic/help-with-drop-down-action
Polylang does not offer a dropdown with flags. You will have to create it yourself.
I actually don’t want the flags, sorry for not stating that.
But the style is as shown on the examples.
Easier to achieve with listing or dropdown?
Thanks.
Plugin Author
Chouby
(@chouby)
I don’t understand which “style” you want. If you want a dropdown, use the dropdown. You can style it with css.