Title: Polylang dropdown list not linking…
Last modified: August 22, 2016

---

# Polylang dropdown list not linking…

 *  [diogobento](https://wordpress.org/support/users/diogobento/)
 * (@diogobento)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/)
 * All of a sudden the language dropdown list stopped linking to the language url.
   
   Using `<?php pll_the_languages(array('dropdown'=>1)); ?>`. Clicking the secondary
   language (english) doesn’t link to siteurl.com/en/.
 * Any ideas why? What should be the problem?
 * Thanks.
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/#post-5198531)
 * Hi!
 * As stated in [the documentation](http://polylang.wordpress.com/documentation/documentation-for-developers/functions-reference/#pll_the_languages),
 * > 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
 *  Thread Starter [diogobento](https://wordpress.org/support/users/diogobento/)
 * (@diogobento)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/#post-5198567)
 * 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](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](http://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2009/12/language-switcher-designer.png))?
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/#post-5198579)
 * 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](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.
 *  Thread Starter [diogobento](https://wordpress.org/support/users/diogobento/)
 * (@diogobento)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/#post-5198581)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/#post-5198627)
 * I don’t understand which “style” you want. If you want a dropdown, use the dropdown.
   You can style it with css.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Polylang dropdown list not linking…’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Chouby](https://wordpress.org/support/users/chouby/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/polylang-dropdown-list-not-linking/#post-5198627)
 * Status: not resolved