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.

This topic contains 2 replies, has 1 voice.

Last updated by beatS-3 1 day, 22 hours ago.

Author Posts
February 26, 2025 at 5:07 pm #16752413

beatS-3

Background of the issue:
I am working on a site under development using a block theme. I translated the 'Header' template part and my menu under 'Navigation Menus'.

Symptoms:
When switching to the secondary language, only some URLs are updated with the language code and translated slug, while others link to the primary language without a language prefix.

Questions:
What is the workflow to make a changed slug in the secondary language show up on the frontend?
Have any developers actively used WPML with a block theme in a real-world example?
Is there a dedicated page in the docs with in-depth step-by-step explanations of the entire workflow to translate a block theme?

February 26, 2025 at 6:42 pm #16752911

Lucas Vidal de Andrade
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

If you are talking about standard WordPress menus, the ones you find under appearance, you can follow the steps here to translate them:
https://wpml.org/documentation/getting-started-guide/translating-menus/

It's a local website, so I couldn't check it. But since only some menu items are translated, there are two things that might be causing that:

1. Not all pages are translated. For a menu link to be translated, the page's translation must exist and be published on your website
2. The inserted links are custom links. In this case, WPML won't translate them automatically. You'll need to translate the custom links in WPML > String Translation.

If that does not help, one of my colleagues will soon come to continue support. Also, please share the exact steps you took to translate the menu, and any specific details you find useful.

February 26, 2025 at 6:57 pm #16753099

beatS-3

Dear Lucas, appreciate your feedback.

As the title of my post suggest: It's a block theme, not a classic theme.

And as I said, the Navigation Block menu item labels are translated correctly. SOME site URLs are also translated, but some are NOT. However that works in the backend.

Additionally, within the Navigation Block I added a "Custom Link" Block that needs to be translated (its URL). How would that work using "String Translations"? What "Domain" would that be assigned to?

Thanks for looking into this!