
內容簡介
透過If Widget 插件,您可以控制 widget 顯示的頁面。使用自訂可見性規則(無需 PHP 或技術知識),顯示或隱藏 widget。
此插件易於使用,每個 widget 都會新增一個「僅當顯示 widget 時」的選項,可啟用可見性規則的選擇(螢幕截圖中有範例)。可見性規則可以與 AND/OR 結合,以創建更加個性化的可見性選項。
範例
僅當使用者已登入時顯示 widget
如果是行動裝置或來自美國的訪客,則隱藏 widget
僅向管理員和編輯顯示 widget
已登入使用者隱藏登入或註冊 widget
僅向管理員顯示 widget,並且不是行動裝置
可見性規則
以下是您可為 widget 新增的可見性規則:
使用者狀態:使用者已登入
使用者角色:使用者是管理員或編輯者(還有所有可用角色)
使用者註冊:允許使用者註冊
文章類型:目前文章類型為文章或產品
頁面類型:目前頁面為前台或部落格頁面
URL:目前 URL 以「this-page」開頭/結尾
URL:目前 URL 包含「關鍵字」
裝置檢測:是行動裝置
訪客位置:訪客來自美國或西班牙 ✱
訪客語言:訪客語言為英語或西班牙語 ✱
第三方插件整合:顯示使用者所在的「群組名稱」、顯示使用者具有的「範例訂閱」 等 ✱
更多可見性規則附加元件
付費的附加元件提供更多可見性規則和優先支援。
可見性規則:解鎖所有可見性規則,例如:訪客位置、會員狀態、使用者群組,等等。在上面的幾個範例中有標示✱。
支援:獲得一對一的電子郵件支援,了解有關安裝和配置插件的任何問題。
獲取更多可見性規則。
外掛標籤
開發者團隊
② 後台搜尋「If Widget – Visibility control for Widgets」→ 直接安裝(推薦)
原文外掛簡介
With If Widget you can control on which pages widgets are shown. Show or hide widgets with custom visibility rules (no PHP or technical knowledge required).
The plugin is easy to use, each widget will have a new option “Show widget only if” which will enable the selection of visibility rules (example in Screenshots). Visibility rules can be combined with AND/OR to create even more personalised visibility options.
Examples
Display a widget only if User is logged in
Hide widgets if Is mobile device OR Visitor is from US
Display widgets only for Admins and Editors
Hide Login or Register widgets for Logged in Users
Show widget only for Admins AND Is not mobile device
Visibility Rules
These are the visibility rules you can add for widgets:
User state: User is logged in
User role: User is Admin or Editor (plus all the available roles)
User registration: User registration is allowed
Post type: Current post type is Post or Product
Page type: Current page is Front Page or Blog Page
URL: Current URL starts/ends with "this-page"
URL: Current URL contains with "keyword"
Device detection: Is mobile device
Visitor location: Visitor is from US or Spain ✱
Visitor language: Visitor language is English or Spanish ✱
Third-party plugin integrations: Show if user is in Group "Group Name", Show if user has Subscription "Example Subscription" and more ✱
More Visibility Rules Add-on
The paid Add-on provides more visibility rules and priority support.
Visibility Rules: unlock all visibility rules like: visitor location, membership status, user groups and more. A few examples are marked with ✱ above.
Support: get one-on-one email support for any questions you may have about installing and configuring our plugins.
Get More Visibility Rules.
