Skip to content Skip to sidebar

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

Problem:
The client was facing issues with the main menu translation in their multilingual site. Specifically, when clicking any link in the subcategory of 'المتجر' (Shop in English), it redirected to a product link instead of a category link as set up in the English version. Additionally, there were problems with switching between the Arabic and English versions of the site.
Solution:
We identified that the issue was related to the incorrect translation of the product base in the URL settings. In the WPML > Settings, the base slug for product categories was not correctly translated. We corrected the translation of the endpoint Product base from 'منتج' to 'منتج/%product_cat%' in WooCommerce > WooCommerce Multilingual > Site URL settings. After making this change, we resaved the permalinks and updated the menu, which resolved the issue.

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 problems persist, please open a new support ticket at WPML support forum for further assistance.

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 0 voices.

Last updated by Laura 1 week, 3 days ago.

Assisted by: Laura.

Author Posts
August 20, 2025 at 1:22 pm #17334374

mustafaY-8

Dear Laura,

Thank you for your kind information i contacted the theme Author and resolved the issue of front page translated to Arabic, but i have a little issues i don't know why its happening in:

1: Main menu translation if i click any link in the sub category of *المتجر* which is Shop in English it move me to product link not category link as we setup in the English version.

2. Frontend is translated to Arabic but if i click on any link to move me to the English version links

is there anyway to resolve it using permalinks or something else from WPML to work correctly for 2 issues mentioned above

August 20, 2025 at 1:40 pm #17334493

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

The problem is in your menu (and in the Product Categories pages) the links to product categories appear like this hidden link

However the base slug is translated in WPML > Settings, so the correct link should be hidden link (please let me know if it's correct).

I checked in WooCommerce > WooCommerce Multilingual > Site URL and the endpoint Product base which is in English "shop/%product_cat%" was translated as منتج instead of منتج/%product_cat%.
I changed it and resaved the permalinks and the menu and it should be fixed now