[WordPress] 外掛分享: Trex Dual Preview

首頁外掛目錄 › Trex Dual Preview
WordPress 外掛 Trex Dual Preview 的封面圖片
全新外掛
安裝啟用
尚無評分
38 天前
最後更新
問題解決
WordPress 6.0+ PHP 8.0+ v2.5.0 上架:2026-03-23

內容簡介

Trex Dual Preview 是一款為 WordPress 的區塊編輯器(Gutenberg)提供一鍵同時預覽桌面與手機版的外掛,讓使用者能夠輕鬆比較不同裝置的顯示效果,提升網站設計的效率。

【主要功能】
• 一鍵開啟桌面與手機預覽
• 實時比較 PC 與手機視窗
• 可即時調整顯示寬度
• 在新標籤中開啟全螢幕雙重預覽
• 自動隱藏 WordPress 管理列

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.5.0) 或搜尋安裝

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

原文外掛簡介

Trex Dual Preview adds a one-click PC & smartphone simultaneous preview to the WordPress block editor (Gutenberg) sidebar.
Features

Open a modal with PC and smartphone previews side by side with one click
Compare PC (1200-1920px) and SP (320-768px) viewports in real time
Adjust display width instantly using sliders
Open a full-screen dual preview in a new tab
Automatically hides the WordPress admin bar and theme-specific toolbars (e.g. Cocoon)
Responsive layout that adapts to window resize via ResizeObserver

Security

Full-screen preview access is protected by wp_verify_nonce() and current_user_can()
iframes use the sandbox attribute to restrict unnecessary permissions
All input is sanitized and escaped (absint, sanitize_text_field, esc_url, etc.)

延伸相關外掛

文章
Filter
Apply Filters
Mastodon