跳到内容 跳到侧边栏

標籤: 

本主题包含 0 則回覆 ,有 0 声音 。

最后由 leeC-2 4 months, 1 week前 更新。

协助者:: Dražen.

作者 帖子
2025 年 11 月 7 日 于 上午 10:24 #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?