Skip Navigation

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

Problem:
The client is experiencing issues with the Flatsome theme and WPML on their website. The default language is German, but when switching to English, the menus remain in German, and some links incorrectly point to German or Dutch pages.
Solution:
If you're experiencing this issue, we recommend you try the following steps:
1. Take a backup of your site first for safety reasons.
2. Ensure you sync the menus by following these steps:
- Go to WPML >> WP Menu Sync page and press the Sync button.
- Select all the menu items and press the “Apply Changes” button.
- Complete the translation of custom menu links.
- After translating the custom links, go to WPML >> WP Menu Sync page and press the Sync button again.
3. Go to the WPML >> Settings page and press the “Scan now and adjust links” button.
4. Re-save the permalinks from the Settings >> Permalinks page by pressing the Save Changes button.
5. Delete all sorts of caches including site/server cache, plugin cache, CDN cache, and clear the browser cache.
For more detailed instructions, please visit Translating Menus documentation.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML support forum.

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 8 replies, has 2 voices.

Last updated by Noman 1 month, 1 week ago.

Assisted by: Noman.

Author Posts
October 6, 2024 at 6:58 pm #16258407

dieterB-12

Background of the issue:
I am experiencing issues with the Flatsome theme and WPML on my website hidden link. The default language is German, and I am trying to ensure that the English version of the site displays correctly, as some of the links point to either german or dutch pages.

Symptoms:
When I switch to English, the menus on the main page remain in German, and the links in the menus also lead to German pages. Additionally, the second slider link directs to a German product page instead of an English one. On the English main page, hovering over the 'Tab Tower Small' menu button shows a link to a Dutch (NL) language page.

Questions:
How can I ensure that the menus and links display in English when the language is switched?
Why does the second slider link lead to a German product page instead of an English one?
How can I fix the issue where the 'Tab Tower Small' menu button links to a Dutch page instead of English?

October 7, 2024 at 9:27 am #16259928

Noman
Supporter

Languages: English (English )

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

Hi,

Thank you for contacting WPML Support. I can see the issue on your site. Could you please try to follow the below steps and let me know how it goes:

1. Please take a backup of your site first for safety reasons.

2. Please make sure to follow the below procedure to Sync the menus:

2.1. Go to WPML >> WP Menu Sync page and press the Sync button.
2.2. Select all the menu items and press the “Apply Changes” button.
2.3. Please make sure to complete the translation of custom menu links.
2.4. After translating the custom links, go to WPML >> WP Menu Sync page and press the Sync button again.

3. Go to the WPML >> Settings page and press the “Scan now and adjust links” button.

4. Re-save the permalinks from the Settings >> Permalinks page by pressing the Save Changes button.

5. Delete all sorts of caches on your site/server cache if any / plugin cache / CDN cache, clear the browser cache, and then see if it resolves the issue afterward.

Here is a doc for more details:
https://wpml.org/documentation/getting-started-guide/translating-menus/#easy-customizable-wp-menus-sync

Please let me know the results,
Thank you

October 7, 2024 at 1:51 pm #16261892

dieterB-12

Thank you, the menus I have now updated.

Only one issue now remains, and that is some slider links on the main page are not correct.

For example, choosing English, and then clicking on the third slider link (Quick-Tip 30 to 60 Holes. Clicking on More Info will direct to the dutch NL version of this product, not the english.

Also on the english page and click on Hood support caps will direct to the NL product page. As with Tab tower etc. Most links direct to the NL pages.

How to I change this?

slider.jpg
October 7, 2024 at 4:20 pm #16262889

Noman
Supporter

Languages: English (English )

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

Glad to hear the menu translation is solved. For the link translation issues, could you please try to follow the below steps:

1. Open the default language home page in Edit mode.

2. Make a small change, for example, add a space or + sign in your page/post title.

3. Update the page by pressing the “Update” button.

4. Now, please remove that small change that did in step #2.

5. Update the page again.

6. Now, please try to open the English translated page in WPML Translation Editor, try to search those links using search input box, add the correct translation if those links exists, also make sure the translation is 100 percent complete, and press the complete button.

If the issue still persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

Thank you for your cooperation

October 8, 2024 at 4:38 pm #16266835

Noman
Supporter

Languages: English (English )

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

Thanks for providing the login details. I’ve followed the below steps:

1. Added the below XML in WPML >> Settings > Custom XML Configuration section:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>button</tag>
      <attributes>
        <attribute>text</attribute>
<attribute>link</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

2. Made a small change in the default language home page to reload the translation.

3. Opened the translated pages in Advanced Translation Editor, searched for the URL’s, added the correct translation, and pressed the complete button.

Now it seems to be shown the correct translation. Could you please check and confirm?

Thank you

October 9, 2024 at 10:59 am #16269519

dieterB-12

Thanks Noman.

I found the Advanced Translation Editor and I am trying to fix a couple of wrong links that remain further down the page.

I also made a small edit on the main page in the default language. Then I opened the page in advanced language editor (eng) but I can not find the link to edit.

Can you help me out here please? I have attached a screenshot.

Thank you.
Dieter

update3.jpg
October 9, 2024 at 3:31 pm #16271465

Noman
Supporter

Languages: English (English )

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

I’ve updated the XML as follows:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>button</tag>
      <attributes>
        <attribute>text</attribute>
	 <attribute>link</attribute>
      </attributes>
    </shortcode>
	<shortcode>
      <tag>ux_image_box</tag>
      <attributes>
      <attribute>link</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

Made a small change in the default language page to reload the translation, opened the translated English page, searched for the URL and added the translation.

You may follow the same steps for French and Dutch language home page.

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

searched the link and add translation.png
October 9, 2024 at 5:14 pm #16271856

dieterB-12

Hi Noman,

This is not working for me and it is very frustrating. I don't know why I can not replicate the same thing you are doing.

Please look at my screenshot and tell me if I am doing something wrong?

1) I first editted the main page in default language... added a dash, saved the page. Editted again, removed the dash and saved.

2) Then I went into WPML, Chose 4th option down.... Translations. There I have 3 versions of the main page in the 3 different languages. I editted them all and the links look like they are correct.

3) went back to the main page but links are still wrong?

I am really struggling to understand this.

searched looks-correct-but does not load the same.jpg
searched looks-correct-but does not load the same 2.jpg
looks-correct-but does not load the same.jpg
October 10, 2024 at 7:24 am #16273092

Noman
Supporter

Languages: English (English )

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

I’m sorry for any confusion. The steps you’re following seem correct. The issue is likely with how the links are added in the default language. In the default language, the link is added as a relative URL (e.g., “/produkt/tab-tower-rot/”) as you can see in the attached screenshot, but when searching in the Advanced Translation Editor (ATE), it’s looking for the full URL.

To resolve this, you can either:

1. Add the links with the complete URL (starting with “http”) in the default language, so they show up when searching in ATE.

2. Or, search using the same relative URL (e.g., “/produkt/tab-tower-rot/”) (screenshot attached) as it appears in the default language.

Let me know if this helps, and feel free to ask if you need further assistance.

Thank you for your cooperation and patience

button link.png
ATE search.png
October 10, 2024 at 6:58 pm #16276722

dieterB-12

Thank you Noman. This was indeed the issue. Adding the full URL on the mainpage then allowed the links to be properly found and translated also.

Thanks for your help.