Title: Language choice page on first visit
Last modified: August 31, 2016

---

# Language choice page on first visit

 *  [thomaswp](https://wordpress.org/support/users/thomaswp/)
 * (@thomaswp)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/choose-first-visit/)
 * I want users to choose their language on a first visit, on a custom page with
   just the language options. If chosen, the choice is remembered in a cookie, everytime
   the user goes to the homepage it will redirect to the homepage in the chosen 
   language.
 * To achieve this:
 * 1) I created a homepage in all languages
    2) I added a custom (fake) language
   + page for it, made this the default language + static frontpage 3) Made custom
   language selector which hides the fake language placeholder 4) Modify ‘maybe_setcookie’
   not to set the cookie for the fake language 5) Modified ‘home_requested’ to redirect
   to the prefered language if a cookie language is set
 * Is there a cleaner way to achieve this?
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

The topic ‘Language choice page on first visit’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [thomaswp](https://wordpress.org/support/users/thomaswp/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/choose-first-visit/)
 * Status: not resolved