前言介紹
- 這款 WordPress 外掛「Osom Block Visibility」是 2024-02-18 上架。
- 目前有 40 個安裝啟用數。
- 上一次更新是 2025-04-15,距離現在已有 17 天。
- 外掛最低要求 WordPress 6.3 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 3 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
nahuai | osompress | esther_sola |
外掛標籤
hide block | visibility | hide content | hide on mobile | conditional blocks |
內容簡介
總結:
Osom Block Visibility 是一個能夠讓你輕鬆控制 WordPress 區塊可見度的外掛。這個外掛不僅可以依照裝置或使用者登入狀態來管理每個區塊的可見度,與其他類似外掛相比,最大的優勢在於它不使用 CSS 來隱藏區塊,而是預防區塊的顯示,避免不必要的負荷。尤其當需要隱藏圖片或其他龐大內容時,這對於網頁效能尤其有益。
問題與答案:
1. Osom Block Visibility 是用來做什麼的?
- 可以輕鬆控制 WordPress 區塊的可見度。
2. Osom Block Visibility 的差異性在哪裡?
- 與其他類似外掛相比,它不使用 CSS 隱藏區塊,而是預防區塊渲染,避免不必要的負荷。
3. 使用 Osom Block Visibility 有哪些功能?
- 可以依照裝置或使用者登入狀態管理區塊的可見度。
- 可以在桌面上隱藏區塊。
- 可以在移動裝置和平板電腦上隱藏區塊。
- 可以對已登入使用者隱藏區塊。
- 可以對未登入使用者隱藏區塊。
- 可以隱藏任何移動裝置和平板電腦上的區塊來優化效能。
- 可以依據使用者登入狀態在區塊主題上顯示/隱藏某些選單項目。
- 可以為不同螢幕尺寸的頁面加快載入速度,並使用不同的區塊設計。
4. Osom Block Visibility 的開發資訊是什麼?
- 外掛使用 wp_is_mobile 函數來檢查裝置是否為行動裝置(或平板電腦)。雖然這有無法區分行動裝置和平板電腦的限制,但有優點讓你僅載入裝置所需的區塊,這在某些情況下可以將每頁載入的區塊數量減半。
HTML 前端格式:
- Osom Block Visibility 是一個能夠讓你輕鬆控制 WordPress 區塊可見度的外掛。
- 這個外掛不僅可以依照裝置或使用者登入狀態來管理每個區塊的可見度,與其他類似外掛相比,最大的優勢在於它不使用 CSS 來隱藏區塊,而是預防區塊的顯示,避免不必要的負荷。
原文外掛簡介
Osom Block Visibility lets you easily control block visibility from WordPress Block Editor.
The plugin adds a new panel to the block editor with the controls to manage every block visibility by device or user logged status.
The advantage of Osom Block Visibility compared to other similar plugins is that it doesn’t use CSS to hide the block, but prevents it from rendering and adding unnecessary load in the first place.
This can be hugely beneficial in terms of web performance, specially if you are hidding images or other heavy content.
Features
The new Visibility Settings in the block editor will let you:
1. Hide the block on desktop.
2. Hide the block on mobile and tablet.
3. Hide the block to loggedin users.
4. Hide the block to loggedout users.
You can use it for:
* Hide any block on mobile and tablets to improve performance.
* Display/hide some menu items dependending if the user it’s loggedin or not (on block themes).
* Increase loading speed for pages with different block designs for each screen size.
Tutorial
Control WordPress blocks visibility by device & logged status
Dev Info
The plugin uses wp_is_mobile function to check if the device it’s a mobile (or tablet) or not. This has the limitation that it can’t discern between mobile and tablet, but it has the advantage that let’s you load only the necessary block for the device. This can reduce the number of blocks loaded per page even by half in some cases.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Osom Block Visibility」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Hide Block 》簡單易用, 您想要在後台編輯區塊,但又不想將其發佈給公眾嗎?此外掛可讓您在頁面上隱藏或顯示區塊。, 此外掛的功能包括:, , 在後台中運作,但在公開網頁上...。
Disable Block – Hide blocks in the frontend 》Disable Block 是一個簡單易用的 WordPress 外掛,它會在 WordPress 編輯器中加入一個按鈕,讓你可以在前端隱藏區塊,不讓觀眾看到。, 這個外掛很適合正在後...。
Hide Blocks 》這個外掛讓你可以在網頁上隱藏單獨的區塊。。