Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqas Bin Hasan 1 year, 2 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
March 19, 2024 at 8:00 pm #15428721

benR-25

There are several issues here I can't figure out.

From the backend it looks like all pages are translated (see attachments), but many pages show no translation. The home page is one.

On the home page, from both the header and footer switchers if I switch to Spanish it does not load. If I add /es/ in the address bar, it does not load.

The switcher does not show on all pages - is there a setting where I can change it to always display the switcher?

Thanks,
Ben

screencapture-innervisionshealthcare-org-wp-admin-admin-php-2024-03-19-15_52_53.png
screencapture-innervisionshealthcare-org-wp-admin-admin-php-2024-03-19-15_52_43.png
screencapture-innervisionshealthcare-org-wp-admin-admin-php-2024-03-19-15_52_21.png
March 19, 2024 at 9:35 pm #15428933

Waqas Bin Hasan
WPML Supporter since 05/2014

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Before proceeding further, may I ask you to try the following?

IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.

- Fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:

define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

Remember to add these lines before the line where it says:
/* That's all, stop editing! Happy publishing. */

- Deactivate all plugins except WPML and its addons and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2024).

As of the other question about showing LS always, you can set your post type to "Translatable - use translation if available or fallback to default language" instead of "Translatable - only show translated items" in WPML -> Settings -> Post Types Translation. In this case, if translation isn't available, the default language content 'll be shown when you switch the language. See attached for a reference.

Regards.

post types translation.jpg

The topic ‘[Closed] Language switcher not working? Or translations not happening? I can't tell’ is closed to new replies.