Background of the issue:
I have a grid with 4 product categories on my home page hidden link with an image and a label linking to the corresponding category. The label's link is translated correctly in German, but the image's link is not, displaying the link in Greek. The same layout on the page hidden link has links translated correctly.
I tried everything from this post as well https://wpml.org/forums/topic/internal-links-pointing-to-wrong-language-3/
Symptoms:
The image's link on the home page is not translated correctly, showing the link in Greek instead of German.
Questions:
Why is the image's link not translated correctly on the home page?
How can I ensure that the image's link is translated correctly like on the shop page?
Welcome to the WPML support forum. Thanks for contacting us.
While waiting for one of my colleagues to help with this ticket, I had a look at our site but couldn't see the issue.
- I visited the homepage in all 3 languages
- For each language I can see the 4 categories (2 x 2 image grid)
- For each language I clicked on the image an the label for all 4 categories
- Links are correctly translated
Maybe it was some cache issue? Elementor has it's own cache in "Elementor > Tools".
If I missed something, please provide more information on how to reproduce the issue.
just fyi that i updated today your "WooCommerce Multilingual & Multicurrency" plugin to the latest version and disabled the cache mechanism from Elementor for the images with the links on the Home page, but the issue is still here.
Inside the Elementor of the original post (Greek), i have the same links at Image and Heading widgets.
See "image_1".
Inside the ATE, i don't see the links to translate.
I have enabled this option inside ATE: "Which types of links should appear in the editor?" -> "Show all links".
So my assumption is that WPML handles these links as internal links and do the translation assumption.
In the browser after clearing the cache, i see the issue when hovering over the Image and the Heading (hidden link - German Home page).
See "image_2".
The link of the Images is in Greek (which is wrong), and the link from the Headings is in German (as it should be).
The same is happening in all 4 Images and Headings.
I'm Osama from WPML forums support. I'll be glad to help you today.
First of all, sorry for the late reply; it was due to a higher workload.
I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP) Preferably to a test site where the problem has been replicated.
Your answer will be private, meaning only you and I can access it.
❌ Please back up your database and website ❌
✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.
✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.