Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client wanted to use the PHP language switcher from the main site on one of the subsites in a multisite setup, but it was not appearing.
Solution:
We explained that sub-sites are considered separate sites and therefore cannot display the language switcher from the main site. To add a language switcher to a sub-site, the client needs to:
1. Install WPML on the sub-site.
2. Translate the pages on the sub-site.
3. Add the language switcher in WPML → Languages.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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.

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Andrey 1 year, 4 months ago.

Assisted by: Andrey.

Author Posts
February 5, 2024 at 2:50 pm #15266742

lyndsayP-2

I currently have a multisite setup on my site. On the main site, I have WPML installed with chinese and spanish supported. I use the PHP language switcher on my main site to allow users to switch the site language.

I would like to use this switcher on one of the subsites too, but its does not appear.

Is it possible to use this switcher on other sites?

February 5, 2024 at 6:36 pm #15268022

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Since sub-sites are considered as separate sites, it is not possible to show the language switcher from the main site. If you want to add this feature, it will require custom coding which is beyond the scope of our support.

If you wish to display the language switcher for the sub-site, you need to follow the same steps you did for the main site, which are:

1. Install WPML on the the sub-site
2. Translate pages there
3. Add the language switcher in WPML → Languages