[Resolved] Split: Buttons on home page are redirected to German language
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with buttons on your homepage not redirecting to the correct language after a language change, and your site uses custom blocks from the Kubio plugin, the URL field of the block may not be registered for translation. Solution: First, try searching for the URL in the Advanced Translation Editor (ATE). If it's not available, you'll need to register the URL field for translation. You can do this by creating a custom XML configuration code. Here are the steps: 1. Edit the homepage with the default editor and switch to the Code editor to view the block structure. 2. Use the following XML code to register the button text and URL for translation:
3. Add this code to WPML > Settings > Custom XML Configuration. 4. Make a small change to the page content, save it, and update the translation. The button URL should now be adjusted automatically. For more detailed guidance, please refer to our documentation:
If this solution does not apply to your case because it might be outdated or not relevant, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.
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.
Now we are having problems with the buttons on the home page, even after the person changes language, the buttons just below the first screen, where the names of the tours are, are redirected to the website in German.
Thank you for contacting WPML support, I’m happy to help you with this issue.
I see the Tours section on the homepage is created by a custom block from the plugin Kubio on your site.
First thing, I suggest you search for the URL in the Advanced Translation Editor (ATE) and translate it. If it isn't available there, it is possible that the URL field of the block is not registered for translation.
Then you can follow the documentation below to create a custom XML configuration code to register the URL field in the block for translation and search for it in the ATE again.
I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.
it is added to WPML > Settings > Custom XML Configuration. Then I make a small change to the page content > Save > Update the translation and you can see the button URL is adjusted automatically.
When I click on edit it gives the following message:
You should edit the header template in the admin area > Kubio.
Where to manually update these 3 languages?
Please follow steps below to translate the header template:
1. Go to WPML > Translation Management > Select the header template and languages > Assign to translator > Add to Translation Basket.
2. Go to Translation Management > Translation Basket > Send items for translation.
3. Go to WPML > Translations > Take the job and translate the template.