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.

Our next available supporter will start replying to tickets in about 7.18 hours from now. Thank you for your understanding.

We have a longer than usual waiting time. Please make sure to check out the Known Issues page and Minimum Requirements before reporting any issue.
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 7:00 – 15:00 -
- - - - - - -

Supporter timezone: Pacific/Easter (GMT-05:00)

This topic contains 0 replies, has 0 voices.

Last updated by Ilyes 19 hours, 39 minutes ago.

Assisted by: Ilyes.

Author Posts
November 15, 2024 at 12:11 pm #16408200

jeppeS-3

Background of the issue:
I have Danish and Norwegian languages on my site. I want to change the URL when viewing a product to include the category slug, but only for Norwegian.
Currently, for Danish, it is shopdomain.dk/vare/%product%
and for Norwegian, I want it to be shopdomain.dk/%category%/%product%

Symptoms:
I can't find any documentation regarding changing the URL structure for only one language.

Questions:
How can I change the URL structure to include the category slug only for the Norwegian language using WPML?

November 16, 2024 at 2:09 am #16410147

Ilyes
Supporter

Languages: English (English ) French (Français )

Timezone: Pacific/Easter (GMT-05:00)

Hello again,

I'm afraid this won't be possible with WPML as the URL structure has to be the same between languages for content to be linked properly,

Also, tweaking the code to force this change is prone to issues, I wouldn't recommend it.

Best,