
內容簡介
總結:Tiny Widget Manager (TWIM)是一個輕量而功能強大的工具,通過允許您直接從管理面板控制每個小工具的可見性,從而改善了WordPress小工具系統。
1. TWIM是如何改進WordPress小工具系統的?
- 允許您直接從管理面板控制每個小工具的可見性。
- 輕量且功能強大,提供對小工具如何顯示和何時顯示的完全控制。
2. TWIM支持哪些顯示/隱藏條件?
- 特定頁面的顯示/隱藏。
- 特定文章類型的顯示/隱藏。
- 档案頁面的顯示/隱藏 (類別、標籤、作者、日期)。
- 使用者狀態的顯示/隱藏 (已登入、已登出、使用者角色)。
- 設備類型的顯示/隱藏 (手機、平板、桌面)。
3. 如何檢視已啟用的條件?
- TWIM提供有用的活動條件指示器,以"眼睛"圖示的形式,讓您一目瞭然地檢查已啟用的條件。
4. TWIM如何克服設置可見性條件時的困難?
- 為每個小工具添加一個簡單的界面,以定義可見性規則,讓網站編輯人員更智能且更靈活地管理小工具可見性。
5. TWIM如何處理條件組合的問題?
- 每個小工具還可以定義所有條件是否必須為真,或者是否只需要一個條件即可。
- 每組條件都有自己的顯示/隱藏設置,組合幾乎是無限的。
6. TWIM有哪些設定選項?
- 恢復經典的小工具管理畫面 (而非基於塊的"小工具"編輯器 — 請參閱下面的限制)。
- 選擇TWIM的管理界面的配色主題。
7. TWIM的局限性在哪裡?
- TWIM目前不支援最近WordPress版本中引入的新的基於塊的小工具編輯器。
- 如果要使用TWIM,必須切換到傳統的小工具界面 (這可以從插件的設定中完成)。
外掛標籤
開發者團隊
原文外掛簡介
Tiny Widget Manager (TWIM) improves the WordPress widget system by allowing you to control each widget’s visibility directly from the admin panel.
It’s a lightweight yet powerful tool that gives you full control over how and when widgets are displayed.
TWIM adds a simple interface below each widget for defining visibility rules. This provides site editors with a much smarter and more flexible way to manage widget visibility.
Available show/hide conditions
The power of TWIM lies in the variety of logic conditions it supports:
– Show/hide on specific page(s)
– Show/hide on specific post type(s) (custom or built-in)
– Show/hide on archive pages (category, tag, author, date)
– Show/hide by user status (logged-in, logged-out, user roles)
– Show/hide on device type (mobile, tablet, desktop)
Global AND/OR setting for conditions
For each widget, you can also define whether all conditions must be true or if only one is enough.
Since each group of condtions has its own show/hide setting, combinations are nearly endless.
Active conditions indicator
When setting visibility conditions for each of your widgets, it can soon become difficult to understand which conditions have been set.
TWIM provides a useful active condition indicator in the form of “eye” icons allowing you to check in a glance which conditions have been activated for a given plugin (see screenshots).
Widget Class
A dedicated input field allows you to add custom CSS classes to your widgets—no need for an additional plugin just for styling.
Settings
The settings page currently offers two options:
– Restore the classic widget management screen (instead of the block-based “Widgets” editor — see Limitations below).
– Choose the TWIM color theme for the admin interface.
Limitations
TWIM does not currently support the new block-based widget editor introduced in recent WordPress versions.
If you want to use TWIM, you must switch to the legacy widget interface (this can be done from the plugin’s settings).
Development
You can contribute to this plugin or follow development on GitHub:
🔗 https://github.com/wpolstudio/tiny-widget-manager
