Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client has a staging site with languages configured for English and Icelandic. A button in the header links to the English site's shop, but when switching to Icelandic, the link incorrectly redirects to the production site's shop instead of the staging Icelandic version.
Solution:
We recommend checking if the button was added using the Theme's Customizer at Appearance → Customize → Header Builder. If this is the case, the URL and button text should be translatable via WPML > String Translation. It's important to ensure that these strings are registered and correctly translated to reflect the appropriate staging URLs for each language.

If this solution does not resolve the issue or seems outdated, we highly 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.

This topic contains 1 replies, has 0 voices.

Last updated by Andreas W. 3 weeks, 2 days ago.

Assisted by: Andreas W..

Author Posts
March 13, 2026 at 12:04 pm #17895419

sigurdurB

This is on a staging site. Languages are configured for origional site (english) at stg01.securenet.is and Icelandic translation at stg01.oruggtnet.is. There is a button in the header with a link to stg01.securenet.is/shop. This all is great on the english site. When I switch to Icelandic that link becomes oruggtnet.is/shop, taking the tester to the production site. This is a major problem. That link needs to be stg01.oruggtnet.is/shop.

March 14, 2026 at 9:55 am #17897235

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

It looks like you created a header with a button.

Was this added by using the Theme's Customizer at Appearance → Customize → Header Builder?

If so, then those values can be translated at WPML > String Translation. There must be registered strings for button text and URL, and you will need to adjust their translations.

Best regards
Andreas