[WordPress] 外掛分享: Slim Mobile Theme Switcher

首頁外掛目錄 › Slim Mobile Theme Switcher
WordPress 外掛 Slim Mobile Theme Switcher 的封面圖片
全新外掛
安裝啟用
尚無評分
7 天前
最後更新
問題解決
WordPress 5.8+ PHP 7.4+ v1.0.0 上架:2026-03-09

內容簡介

Slim Mobile Theme Switcher 是一款輕量級的外掛,專為需要專屬行動體驗的網站設計,無需重型行動外掛的負擔。它能有效區分手機與平板,確保使用者獲得最佳的瀏覽體驗。

【主要功能】
• 真正的行動偵測:精確區分手機與平板設備
• 手動覆蓋:使用者可強制選擇主題
• 持久選擇:記住使用者的主題選擇達 30 天
• 無額外負擔:不添加前端 CSS 或 JS
• 開發者友好:專為開發者設計的解決方案

外掛標籤

開發者團隊

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

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

原文外掛簡介

Slim Mobile Theme Switcher is a developer-friendly, lightweight solution for sites that need a dedicated mobile experience without the overhead of a heavy mobile plugin. This plugin targets mobile handhelds, ensuring tablet users may still enjoy your full desktop-grade layout.
Key Features

True Mobile Detection: Uses refined regex to separate small-screen phones from tablets (iPads/Android tablets).
Manual Overrides: Allow users or testers to force a view using ?theme=handheld or ?theme=active.
Persistent Choice: Option to remember a user’s manual theme choice for 30 days via cookies.
No Bloat: Zero front-end CSS or JS added by the plugin itself.
Developer Friendly: Built by a developer for developers.

How It Works
The plugin uses a precise, two-step detection process to ensure the best user experience:
1. Exclude Tablets: High-resolution devices (iPads, Android tablets, Kindle Fire) are served the Desktop Theme to take advantage of their screen size.
2. Detect Phones: Handheld mobile devices (iPhone, Android Mobile) are served the Mobile Theme.
3. Manual Choice: If a user manually switches via URL, their choice is honored for 30 days via cookies.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon