Skip to content Skip to sidebar

Tagged: 

This topic contains 0 replies, has 0 voices.

Last updated by leeC-2 6 months ago.

Assisted by: Dražen.

Author Posts
November 7, 2025 at 10:24 am #17556663

leeC-2

Background of the issue:
I am adding my own custom header on the website that finds the IP of the user and then shows a banner 'I see you speak dutch, switch to dutch here'. I want to know what I can put in my Elementor button so that when the client clicks it, it goes to the language of that page. I asked ChatGPT and it told me to use this shortcode in my button [wpml_url language="nl"].

Symptoms:
If I use the shortcode [wpml_url language="nl"], my page goes to: about:blank#blocked.

Questions:
What can I put in my Elementor button to switch to the language of that page?