Skip Navigation

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

Problem:
The client wants to know how to translate the root slug of a page, specifically from English to Welsh, for a multilingual WordPress site using WPML.

Solution:
If you're looking to translate the root slug of your website's page to a different language, such as Welsh, we recommend the following steps:
1. Go to the backend of your WordPress site.
2. Change the language at the top bar to the target language (Welsh in this case).
3. Navigate to the 'Pages' or 'Posts' section.
4. Hover over the page or post you want to change the slug for and select 'Quick Edit'.
5. Change the slug to the desired translation.

This process is part of WordPress's functionality and not specific to WPML. For more information on changing slugs in WordPress, you can refer to this Yoast documentation.

If this solution doesn't seem relevant to your issue, please don't hesitate to open a new support ticket with us here.

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

Last updated by Mihai Apetrei 1 year ago.

Assisted by: Mihai Apetrei.

Author Posts
December 17, 2023 at 8:49 pm #15079689

Tom

Hi there,

May I know how to translate the root slug? I've read the below article but it doesn't help because I guess it's meant for custom slugs only.

https://wpml.org/documentation/getting-started-guide/translating-page-slugs/

I want to translate the below slug which is the root slug. Any idea?

website-speed-performance-test

Look forward to hearing from you. Thank you so much.

BR,
Tom

December 19, 2023 at 1:04 pm #15092781

Tom

Hey there,

I'm just wondering when I will get an answer.

Thanks.
BR,
Tom

December 19, 2023 at 7:09 pm #15096241

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi Tom.

Thank you so much for your patience. As the banner at the top says, there's a bit longer period now in the winter holidays period due to vacations and a lot of tickets/chats coming in.

Sorry for that.

From my understanding, you would want to change the slug of a default-language page, I hope that is correct - if I understood things wrong, please let me know.

If you want to change the slug of a page or post, you can either go into the backend of the page and edit it there or while you are in the "pages"/"posts" main list, you can hover over the page/post you want to change the slug for, select "quick edit" and change the slug from there.

This feature doesn't come from WPML but actually is a WordPress feature that comes built into WordPress.

Here is a good page where there is some helpful documentation for this:
hidden link

I hope that this is what you were looking for.

If not, please let me know and try to elaborate a bit more on the exact example where you need help.

Thank you!

Mihai Apetrei

December 20, 2023 at 10:14 am #15100043

Tom

Hi Mihai!

Thanks for the links and whatnot!

Haha!!! Even after having done over a thousand WP websites, I feel like there're still tons of new things to learn every single day but I guess I at least know how to change a slug in the dashboard!!!

Changing a slug won't help because obviously I wanted a slug in Welsh for the Welsh site. Currently, the root slug is azinity.com/website-speed-performance-test/ which is in English. I want it to be like azinity.com/prawf-perfformiad-cyflymder-gwefan/ for the Welsh site. In fact, we can change the slug in functions.php. The question is where in WPML can I link it to. Any idea?

Look forward to hearing from you. Thanks a lot!

BR,
Tom

December 22, 2023 at 6:37 pm #15121577

Mihai Apetrei
Supporter

Languages: English (English )

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

Hi Tom and welcome back!

From what I can see on your site, you have these two URLs:

- hidden link
- hidden link

You should be able to do exactly what I mentioned here:
https://wpml.org/forums/topic/how-to-translate-the-root-slug/#post-15096241

But, in order to do that for a translation, while you are in the backend, you should first change the language at the top bar to Welsh, then simply go to pages/posts and follow the steps I mentioned.

I hope that you will find this information helpful. 🙂

Mihai