[WordPress] 外掛分享: PHP Mobile Redirect

首頁外掛目錄 › PHP Mobile Redirect
WordPress 外掛 PHP Mobile Redirect 的封面圖片
30+
安裝啟用
★★★☆☆
3.8/5 分(9 則評價)
4670 天前
最後更新
問題解決
WordPress 3.2+ v1.4 上架:2013-03-09

內容簡介

這個外掛可以輕鬆偵測行動裝置,並將這些訪客導向到你的網站行動版。此外,這個外掛還提供了一個受「cookie」驅動的功能,使你可以讓使用者選擇「檢視完整版網站」而不被重新導向至行動版。

如果你要升級,請透過「設定」->「PHP重定向」啟用重定向功能。

以下是如何設定「cookie」的 PHP 程序:

setcookie("mobile","m", time()+3600, "/");

注意!行動版跳過重新導向的「cookie」是可選的,只應用於給使用者提供「檢視完整版網站」選項。

Code 96 提供 WordPress 網站設計服務和客製化 WordPress 佈景主題。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「PHP Mobile Redirect」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin easily detects mobile devices and redirects them to the mobile version of your site. This plugin also gives you the ability to bypass the mobile redirect based upon a cookie that is set on your mobile site. This allows you to redirect mobile users and give the option to “View Full Site.”
If you are upgrading you must enable the redirect via Settings > PHP Redirect
To set the cookie simply add the following PHP code to your mobile site:
setcookie(“mobile”,”m”, time()+3600, “/”);
The mobile redirect bypass cookie is optional, and should only be used to give your users a “View Full Site” option
Code 96 offers WordPress Design services and custom WordPress Themes.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon