This thread is resolved. Here is a description of the problem and solution.
Problem: The client is unable to find the ID for adding Admin Texts Translation in WPML for a custom link button provided by radiantthemes addons. The link field of the custom button is not multilingual ready, and the client is facing issues with incorrect URL encoding which affects the functionality of the translated links. Solution: 1. Ensure you have a full backup of your website. 2. Navigate to WPML Settings > Custom XML Configuration and add the following line to the
lea_button_style
tag:
<attribute>link</attribute>
3. Make a minor edit on the page containing the URL and save it. This will make the link available for translation in the translation editor. 4. Remember that the URL is encoded. When translating, change only the text parts and leave the symbols untouched. For example, translate url:%2Fkeychain%2F to url:%2Fde%2Fschluesselanhaenger%2F. 5. Repeat this process for every page in every language.
If this solution does not resolve your issue or seems outdated, we 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 further assistance is needed, please open a new support ticket at WPML support forum.
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.
I'm not sure if I understood your request. Please tell me exactly what you wish to translate. Unfortunately, "ID for adding Admin Texts Translation" is not making sense to me.
Thank you for clarifying it 🙂 This depends on the custom button, so I'll share different techniques you can try. Before proceeding, please make sure that you have a full website backup and that the destination pages (like /keychain/, for example) are also translated.
1. Go to WPML > Settings > Translate Link Targets and click on “Scan now and adjust links”. Wait for it to finish and check if the translated page shows the correct links;
2. If the options above did not work, access the Translation Editor for the page and search part of the link (like “keychain”) using the search bar in the top of the editor. Add the translation;
If none of the options work, let me know. It's possible that this custom button needs additional steps to be fully translatable.
How translate the link url? So in the english site /keychain, in the german site will be the link url /schluesselanhaenger
The link url, I cannot see in Advanced. Where can I specify that the German equivalent of /keychain should be /schluesselanhaenger? Now /keychain is the URL for links in all languages.
Actually, internal links do not show inside the editor and should be translated automatically. If this is not happening, I would like to look at this directly on your site. For this I would need temporary access (WP-Admin and FTP) to your site, preferably to a test/staging site where the problem has been replicated if possible.
The required fields can be found below the comments section. The information you enter is private, i.e. only you and I can see it and have access to it.
I may need to replicate your website locally. To do this, I need to temporarily install a plugin called "Duplicator" or "All in One WP Migration" on your website. This will allow me to create a copy of your website and content. Once the issue is resolved, I will delete the local website. Let me know if this works for you.
IMPORTANT
Please make a backup copy of the site files and database before giving us access.
- If you do not see the wp-admin/FTP fields, this means your post and site login details are being made PUBLIC. DO NOT post your website details if you do not see the required wp-admin/FTP fields. If you do not, ask me to enable the private box. The private box looks like this:
Thank you for waiting. I created a local copy of your website and confirmed that the link field of the custom button provided by your theme was not multilingual ready.
To solve it, please make sure to have a full website backup and follow the steps below:
1. Go to WPML Settings > Custom XML Configuration and add the following line to the lea_button_style tag:
'attribute>link</attribute>
Check attached image;
2. Make a small change on the page that contains the URL and save;
Now, when accessing the translation editor, the link will be available for translation. Please note that the URL is encoded, so change only the text parts and leave the symbols untouched.
Let me know if this works for you and if you have any other questions.
I made a test page: hidden link
I edited the link, but not working. I left the symbols in url. Now the link /kulcstarto/, after I view the page, the link vondetech.com/kulcstarto. Not working. The correct link /hu/kulcstarto.
And do I have to go through every page in every language to fix the links? Right?
Sorry, I wasn't clear enough in my last message. The "%2F" corresponds to "/". That's because your theme encodes the URL. Let me show some examples of you could translate a link:
In this case, the translation corresponds to url: /de/schluesselanhaenger/. I know this solution is not optimal, but unfortunately, due to the way the theme stores the URL, it needs to be done this way.
It needs to be done in every page, to every translation. Let me know if you have any questions.