內容簡介
使用 wpml 插件可以在多語言 WordPress 網站中選擇使用自訂檔案或WordPress頁面作為根目錄 URL,例如用於選擇主要語言的啟動頁面(例如 http://www.yoursite.com)。
問題在於,每當使用者使用根目錄 URL 進入您的網站時,他們會再次看到此頁面。也許您只希望在使用者首次訪問時顯示此頁面。
這就是此插件派上用場的地方,我們在 Cookie 中保存首選語言,只要 Cookie 存在,使用者就可以使用根目錄 URL 進入網站,但是總是會從先前訪問的語言重新導向使用者選擇的語言。
外掛標籤
開發者團隊
② 後台搜尋「Language saver for splash pages using WPML」→ 直接安裝(推薦)
原文外掛簡介
Using the wpml plugin for multi language WordPress sites you can choose to have a custom file or WordPress page
to be used for the root url, like a splash page for the main language selection. (Ex. http://www.yoursite.com).
The thing here is that every time a user enters your site using the root url they will see this page again.
You may only want to show this page when the user is new.
This is where this plugin comes in handy, we save the prefered language in a cookie and as long as this cookie is there
the user can enter the site using the root url, but he will always redirect to his language of choice from his previous visit.
