前言介紹
- 這款 WordPress 外掛「If Widget – Visibility control for Widgets」是 2018-08-24 上架。
- 目前有 1000 個安裝啟用數。
- 上一次更新是 2021-01-18,距離現在已有 1567 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 9 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
hide | roles | rules | widget | visibility |
內容簡介
透過If Widget 插件,您可以控制 widget 顯示的頁面。使用自訂可見性規則(無需 PHP 或技術知識),顯示或隱藏 widget。
此插件易於使用,每個 widget 都會新增一個「僅當顯示 widget 時」的選項,可啟用可見性規則的選擇(螢幕截圖中有範例)。可見性規則可以與 AND/OR 結合,以創建更加個性化的可見性選項。
範例
僅當使用者已登入時顯示 widget
如果是行動裝置或來自美國的訪客,則隱藏 widget
僅向管理員和編輯顯示 widget
已登入使用者隱藏登入或註冊 widget
僅向管理員顯示 widget,並且不是行動裝置
可見性規則
以下是您可為 widget 新增的可見性規則:
使用者狀態:使用者已登入
使用者角色:使用者是管理員或編輯者(還有所有可用角色)
使用者註冊:允許使用者註冊
文章類型:目前文章類型為文章或產品
頁面類型:目前頁面為前台或部落格頁面
URL:目前 URL 以「this-page」開頭/結尾
URL:目前 URL 包含「關鍵字」
裝置檢測:是行動裝置
訪客位置:訪客來自美國或西班牙 ✱
訪客語言:訪客語言為英語或西班牙語 ✱
第三方插件整合:顯示使用者所在的「群組名稱」、顯示使用者具有的「範例訂閱」 等 ✱
更多可見性規則附加元件
付費的附加元件提供更多可見性規則和優先支援。
可見性規則:解鎖所有可見性規則,例如:訪客位置、會員狀態、使用者群組,等等。在上面的幾個範例中有標示✱。
支援:獲得一對一的電子郵件支援,了解有關安裝和配置插件的任何問題。
獲取更多可見性規則。
原文外掛簡介
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.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「If Widget – Visibility control for Widgets」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
If Menu – Visibility control for Menus 》藉由可見度規則,您可以控制網站訪客看到哪些選單項目。以下是一些範例:, , 僅顯示選單項目,當 使用者已登入, 當裝置為行動裝置時,隱藏選單, 顯示選單 給...。
Dynamic Visibility for Elementor 》Dynamic Visibility 擴充套件讓您可以隱藏小工具、欄位、容器、區段或頁面。, 當您正在建立不想向所有人展示的內容時,這尤其有用。, 這是一個 Elementor 的...。
Block Visibility — Conditional Visibility Control for the Block Editor 》借助 Block Visibility 外掛,在 WordPress 中輕鬆創建動態內容,以提高轉換率,增強用戶體驗並改進工作流程。, 這個無需程式碼的解決方案,讓您可以控制網站...。
WordPress Hide Posts 》這個外掛可以讓你隱藏首頁、分類頁、搜索頁、標籤頁、作者頁、RSS Feed、REST API、文章導覽和原生最近文章小工具的任何文章。, 試試看 Demo, 功能:, , 使用...。
My Private Site 》本外掛可讓管理員將 WordPress 網站限制僅供已註冊且已登入的使用者查看,任何未登入的使用者試圖查看網站上的任何頁面、文章或其他部分,都會顯示 WordPress...。
WP-ShowHide 》預設情況下,內容是隱藏的,使用者必須點擊「顯示內容」連結來切換內容。與 Engadget 為他們的新聞稿所做的方式相似。範例用法:[showhide type="pressreleas...。
Product Visibility by User Role for WooCommerce 》「Product Visibility by User Role for WooCommerce」外掛可依照顧客的使用者角色來顯示/隱藏 WooCommerce 產品。, 您可以選擇如何隱藏產品:, , 在商店和搜...。
Different Menu in Different Pages – Control Menu Visibility (All in One) 》設置不同用戶的不同選單,自定義網址、頁面、文章、頁面模板、文章類型、類別、分類等。, 如何設置不同的選單?, , 功能, , 在不同頁面使用不同選單設置有易...。
Restrict Media Library Access 》這個外掛可以限制作者和貢獻者的存取權限,讓他們只能看到自己上傳到媒體庫中的檔案。, 這個外掛有兩個主要用途:當媒體庫過於龐大時,讓作者更容易找到自己...。
Conditional Blocks – Advanced Content Visibility Control for WordPress 》「Conditional Blocks」可以讓你為你的訪客和客戶創建獨特的內容。使用 WordPress 区块编辑器中的可见性控制现在变得更加容易。, , 发挥创意,使用动态内容构...。
Widgets Control 》Widgets Control 是一個工具箱,可以管理所有小工具、側邊欄、內容區域和內容區塊的可見度。, 它允許根據條件顯示小工具和側邊欄 - 您可以選擇僅在某些頁面上...。
Responsive Block Control – Hide blocks based on display width 》Responsive Block Control 將響應式切換添加到區塊編輯器(即 Gutenberg)的“可見性”面板中,以根據屏幕寬度顯示或隱藏區塊。, 設置, 覆蓋現有斷點, function...。
Product Visibility by Country for WooCommerce 》「Product Visibility by Country for WooCommerce」外掛可讓你依據客戶的國家,決定是否顯示/隱藏 WooCommerce 的商品。外掛會自動透過 IP偵測客戶所在地。,...。
Eyes Only: User Access Shortcode 》8220;hide” attribute with a value of “yes” will reverse this behavior and hide the content from the specified users., The plugin ...。
Products Restricted Users for WooCommerce 》有時候您需要限制某些產品只能特定群體用戶購買。這個外掛可以幫助您輕鬆實現。在每個產品中,您都會發現一個框,選擇是否在此產品啟用此功能。如果是,您可...。