Title: Insert language code into a link
Last modified: July 30, 2022

---

# Insert language code into a link

 *  Resolved [williamwps](https://wordpress.org/support/users/williamwps/)
 * (@williamwps)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/insert-language-code-into-a-link/)
 * Hi,
    I have WordPress site and use TranslatePress to translate into my language
   KM.
 * Everything is working find when I click on translate switch button then it goes
   to like this:
 * mysite.com/km/categories/productName
 * I have use Elementor to create a button that link to my specific product by manually
   inset product link into Elementor element on LINK URL like this:
 * /categories/productName then the site will auto fill like this mysite.com/categories/
   productName
 * when I click on the button it’s working good but it switch to English not KM 
   like this:
 * mysite.com/km/categories/productName
 * Could you tell me how to insert language code into this manually URL?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Anghel Emanuel](https://wordpress.org/support/users/anghelemanuel99/)
 * (@anghelemanuel99)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/insert-language-code-into-a-link/#post-15883611)
 * Hello there,
 * Thank you for letting us know about this!
 * You can try to insert that product link manually in that language and see if 
   it goes well.
 * If this won`t work, please open a ticket to our support:[https://translatepress.com/support/ask-a-presale-question/](https://translatepress.com/support/ask-a-presale-question/)
   and mention this ticket from here, and maybe we can find a solution to your problem.
 * Have a great day!
 * Kind Regards,
 *  Thread Starter [williamwps](https://wordpress.org/support/users/williamwps/)
 * (@williamwps)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/insert-language-code-into-a-link/#post-15896304)
 * Thank [@anghelemanuel99](https://wordpress.org/support/users/anghelemanuel99/)
 * I found solution by Google here:
 * [https://translatepress.com/translating-url-slugs/#:~:text=The%20automatic%20translation%20of%20custom,Force%20language%20in%20custom%20links.%E2%80%9D](https://translatepress.com/translating-url-slugs/#:~:text=The%20automatic%20translation%20of%20custom,Force%20language%20in%20custom%20links.%E2%80%9D)
    -  This reply was modified 3 years, 9 months ago by [williamwps](https://wordpress.org/support/users/williamwps/).

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Insert language code into a link’ is closed to new replies.

 * ![](https://ps.w.org/translatepress-multilingual/assets/icon.svg?rev=3166541)
 * [TranslatePress - Translate Multilingual sites with AI Translation](https://wordpress.org/plugins/translatepress-multilingual/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/translatepress-multilingual/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/translatepress-multilingual/)
 * [Active Topics](https://wordpress.org/support/plugin/translatepress-multilingual/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/translatepress-multilingual/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/translatepress-multilingual/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [williamwps](https://wordpress.org/support/users/williamwps/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/insert-language-code-into-a-link/#post-15896304)
 * Status: resolved