
內容簡介
Slim Mobile Theme Switcher 是一款輕量級的外掛,專為需要專屬行動體驗的網站設計,無需重型行動外掛的負擔。它能有效區分手機與平板,確保使用者獲得最佳的瀏覽體驗。
【主要功能】
• 真正的行動偵測:精確區分手機與平板設備
• 手動覆蓋:使用者可強制選擇主題
• 持久選擇:記住使用者的主題選擇達 30 天
• 無額外負擔:不添加前端 CSS 或 JS
• 開發者友好:專為開發者設計的解決方案
外掛標籤
開發者團隊
原文外掛簡介
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.
