This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
|June 5, 2019 at 11:41 am #3960035|
We have set up a root page on hidden link that has links to english and french language versions of the site.
We would like for the visitors to be automatically redirected to their selected language the next time they visit the site by site cookies. I have looked at some previous answers on the forums and most of the things I tried doing through PHP either didn't work or broke the site access completely.
I was looking at these documentation and threads:
What should be the simplest way to accomplish this, keeping in mind that additional languages might be added in the future, so we would need the possibility to expand?
|June 6, 2019 at 8:06 am #3966913|
Languages: English (English ) Spanish (Español )
Timezone: Europe/Madrid (GMT+02:00)
Sorry for the delay to answer your question.
There are 2 parts to this forum question.
1. Normal WPML
However, I did find a stackoverflow answer that might be helpful:
Hopefully that kind of approach might be useful for you or at least send you in the right direction.