[Resolved] String localization for header button won't work.
This thread is resolved. Here is a description of the problem and solution.
Problem:
The wrong URL is set for the button in English. Solution:
Changed the URL to the correct one in WPML String Translations. Relevant Documentation:
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.
There is a button in my header that goes to a link.
Since the link is not the same from French to English, I used String localization to change it (see picture).
But it doesn't work, I always get the French link.
hidden link
Click on the header red button on the right (Request rate).
I found out that when I put my mouse over the button, I see the link in Safari on the left/bottom of the web page and it’s the right link, "hidden link.
But when I click it, something redirect that page to the French link, "hidden link".
Can't find out why.
1) The button is added with the Astra theme in its header setting.
2) Like I said in my first post, I used Localization String in WPML (see first post picture).
Note: I use French WP, so maybe my menus name translation of WPML is wrong in this post.
Yes, I cleared the cache and still redirecting. I have tried Google Chrome also, but same problem.
The plugin I use for the cache is "Redis Object Cache".
Please can you check on WP admin -> Appearance -> Menus that the menu is translated and check the URL for the red button on each translation is correct.
If you have any difficulties checking that part, I would require a temporary access on your WordPress admin page. I have set you next reply as private and you should be able to see a space where you can fill the login details.
The menu is translated, but this button is not part of the menu.
It's a button added to the header section of the Astral personnalisation.
Just after the main menu.
See picture.