[WordPress] 外掛分享: Osom Block Visibility

首頁外掛目錄 › Osom Block Visibility
WordPress 外掛 Osom Block Visibility 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(3 則評價)
7 天前
最後更新
問題解決
WordPress 6.3+ PHP 7.4+ v1.0.2 上架:2024-02-18

內容簡介

Osom Block Visibility 讓使用者輕鬆控制 WordPress 區塊編輯器中的區塊可見性。此外掛提供新的面板,能依據設備或使用者登入狀態管理區塊顯示,提升網站效能。

【主要功能】
• 隱藏桌面上的區塊
• 隱藏行動裝置和平板上的區塊
• 隱藏已登入使用者的區塊
• 隱藏未登入使用者的區塊
• 提升不同螢幕尺寸的載入速度

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.2) 或搜尋安裝

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

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon