Language switcher for subdomains

Question

We are running a wordpress site with Greek content (political & economical analysis) and we want to set up an English site of our site.

The English site will be running on its own wordpress installation in a subdomain of the main site. If the primary site is http://www.analyst.gr then English site will http://en.analyst.gr.

My problem that I face is that I can not find a proper solution for the language switcher. Ideally I want a language switcher that recognizes the browser language and redirects accordingly and stores the language in cookie and if the user selects the other site to store that selection.

For example if I visit the main site by entering the url analyst.gr (or following some link) and landing on the main homepage and then switch language , effectively going to en.analyst.gr I would like to store this info so the next time I visit analyst.gr it will redirect me automatically to en.analyst.gr

I tried using WPML but it assumes that different languages go to the same wp installation using vhosts and at the moment the mapping of posts and menus is not needed.

0
Peter_mjt 8 months 2020-11-28T05:10:24-05:00 0 Answers 12 views 0

Leave an answer

Browse
Browse