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

Last updated by Bobby 2 years, 5 months ago.

Assigned support staff: Bobby.

Author Posts
February 13, 2018 at 1:05 am #1515539


Tell us what you are trying to do?
I'd like the link in Portuguese language to be only "" instead of ""

Is there any documentation that you are following?

Is there a similar example that we can see?
Please see screenshots

What is the link to your site?
hidden link , but it's down at the moment.

February 13, 2018 at 11:27 pm #1516916


Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Please go to WPML->Languages->Edit languages - > Add new language.

You will need to add a custom language and make sure that the 'code' is set to 'pt' , this is what shows in the URL.

also use a different default locale from pt_PT as this is already can use just pt.
[view screenshot]

Once the language is added, if you have content already created (pages/posts./etc.) you will need to duplicate them from the original PT language to your new PT language and then just remove the old language.

February 14, 2018 at 12:06 am #1516937


That apparently works, but it seems I cannot upload a flag image (for the language switcher). I'm trying to upload the image, but it gets stuck on a blank page?

February 14, 2018 at 5:37 pm #1518070


Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

When clicking on choose file try to navigate to
wp-content/plugins/sitepress-multilingual-cms/res/flags and choose the pt-pt.png flag from within the folder and save.

Also you can try to move your custom flag within that folder and do the same but first do try and see if your flag already exists in the folder.

what are your results ?

The topic ‘[Closed] How can I change the "pt-pt" in the url to be only "pt"?’ is closed to new replies.