[WordPress] 外掛分享: Conditional Blocks – Advanced Content Visibility Control for WordPress

首頁外掛目錄 › Conditional Blocks – Advanced Content Visibility Control for WordPress
WordPress 外掛 Conditional Blocks – Advanced Content Visibility Control for WordPress 的封面圖片
2,000+
安裝啟用
★★★★
4.9/5 分(15 則評價)
102 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.4+ v3.3.1 上架:2019-07-28

內容簡介

「Conditional Blocks」可以讓你為你的訪客和客戶創建獨特的內容。使用 WordPress 区块编辑器中的可见性控制现在变得更加容易。

发挥创意,使用动态内容构建模板 - 你可以更改区块为可见或隐藏、分组的区块以及每个嵌套的区块即可重复使用的区块!如果你有任何想法,我們打算让「Conditional Blocks」为整个网站编辑(FSE)主题做好准备。

「Conditional Blocks」可以做什么?

「Conditional Blocks」可以让你轻松点击几下更改任何区块的可见性。查看以下功能以获取有关 WordPress 中条件内容的想法。

免费版中包含的条件类型:

- 为 WordPress 区块创建自定义可见性条件。
- 使用“锁定”条件隐藏所有人的区块。在准备新内容时非常棒。
- 根据用户状态(已登录的用户或未登录的用户)显示或隐藏区块。为已登录用户创建会员内容非常棒。
- 在移动屏幕上显示或隐藏区块。
- 在平板电脑屏幕上显示或隐藏区块。
- 在桌面屏幕上显示或隐藏区块。
- 根据你的主题的 CSS 断点修改屏幕大小以适合设备。

你可以在侧边栏中使用任何内置可见性逻辑创建条件小部件。与 WordPress 区块小部件和完整网站编辑主题完全兼容。

使用「Conditional Blocks Pro」做更多

我们将「Conditional Blocks Pro」设计成灵活的,并允许你为广泛的可见性条件切换区块。独家包括设置 WooCommerce 条件内容的能力。

专业版中包括的内容:

- 根据用户角色显示区块(WooCommerce 客户端、管理员、编辑、订阅者、自定义角色等)。
- 根据日期范围、时间、星期几显示区块内容。
- 为任何设备和浏览器(HTTP 用户代理)显示区块(iPhone、Android、macOS、Linux 和 Windows)。
- 根据 URL 引荐者显示区块(例如如果用户来自 Google.com 或 twitter.com)。
- 根据帖子元字段显示区块,包括自定义元字段和数据。
- 根据 URL 查询字符串(URL 变量)显示区块,你可以为与 Gravity Forms 等表单插件相关的自定义确认内容显示内容。
- 根据帖子 ID 显示区块或在帖子 ID 和 URL 路径上隐藏区块。
- 根据帖子、自定义帖子类型、分类法和术语显示区块。自动检测自定义分类法和术语。
- 显示自定义字段、用户元数据、帖子元数据的区块。
- 根据归档切换区块。
- 创建和管理条件预设,以应用于整个网站上的多个区块。
- 根据 PHP 逻辑和自定义函数显示区块。自定义条件拥有无限的可能性。
- WooCommerce - 根据当前客户的总购物车价值更改区块的可见性。完美的升级销售策略。
- WooCommerce - 我们甚至会推出更多的 WooCommerce 区块条件,每个条件都将帮助你为智能营销创建动态升级销售。
- WooCommerce 中购物车中的商品、当前客户端总购物车价值、在商店中消费的总客户端价值。
- WooCommerce 地理位置 - 使用客户端的 IP 地址根据客户端的国家切换任何 WordPress 区块的可见性。
- WooCommerce 客户端最近订单 -

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Conditional Blocks – Advanced Content Visibility Control for WordPress」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Conditional Blocks is a powerful, no code plugin that allows you to control the visibility of any WordPress blocks within the Block Editor (Gutenberg) using advanced display logic.
Replace multiple plugins with our versatile Conditional Blocks, developed for fast paced freelancers and agencies.
🌏 Get the full overview on conditionalblocks.com
Create Better Sites with Less Plugins 🤩
Everything is block in modern WordPress development with Full Site Editing (FSE). In plain words, you apply conditional display logic to everything.
Here’s some example use-cases where Conditional Blocks shines.

Dynamic headers, navigation and menus,
Cart Messages
CTA & Marketing sections
Restrict content & Access control
Membership content
Content Control
And much more..

What’s Included in Conditional Blocks FREE
The free version of Conditional Blocks offers 3 visibility conditions + The Conditions API for creating your own conditions .

Lockdown condition:
Hide blocks from everyone, perfect for preparing new content or working on drafts.
User Status:
Display content exclusively for logged-in or logged-out users, ideal for membership site content.
Responsive designs:
Control block visibility on mobile, tablet, and desktop screens for responsive designs.
You can edit the CSS Breakpoints to match your theme too.
Developer Focused:
Create Custom Visibility Conditions for WordPress Blocks, such as custom user roles or membership levels. You can easily create your own integrations using code snippets.

The free version is limited.
Consider joining our PRO community to create better WordPress sites & support development.
The Full Toolkit with Conditional Blocks Pro ✨
Conditional Blocks Pro unlocks the full suite of advanced block visibility conditions and integrations, allowing you to create truly dynamic and personalized user experiences:
🎯 Advanced Audience Targeting (Pro)

Geolocation: Target or exclude visitors based on their Country or Continent using their IP address. Ideal for region-specific content, offers, or compliance.
User Role: Precisely control visibility for specific user roles (Admin, Editor, Subscriber, WooCommerce Customer, custom roles, etc.).
Device & Browser: Tailor experiences by showing/hiding blocks based on device type (iPhone, Android, Tablet, Desktop) or browser (Chrome, Firefox, Safari, etc.).
Referrer URL: Display unique content to visitors arriving from specific sources like Google, X/Twitter, or other websites.

⚙️ Dynamic & Automated Content (Pro)

Scheduling: Automate your content calendar! Display blocks only during specific date ranges, times of day, or days of the week – perfect for sales, events, or timely announcements.
Post Meta & Custom Fields: Leverage your existing data by showing or hiding blocks based on post meta or custom field values (including ACF).
URL Query String: Create dynamic landing pages or respond to campaign parameters by controlling visibility based on URL query strings.
HTTP Cookies: Adapt content based on visitor cookie values for advanced tracking or personalization (Pro).
Content Specificity: Target blocks to specific Post IDs, URL paths, Post Types, Taxonomies (like categories or tags), and even specific Terms.
User Meta: Personalize content based on individual user metadata.
Archive Pages: Show or hide blocks specifically on WordPress archive pages.

🔌 Powerful Integrations (Pro)
Integrations are automatically available when the supported plugin is active.

Advanced Custom Fields (ACF): Create hyper-personalized experiences by controlling block visibility based on your ACF field values. (Learn More)
WooCommerce: Boost sales and improve shop UX! Show targeted messages based on cart total, products in cart, purchased products, or customer details. (Learn More)
Easy Digital Downloads (EDD): Enhance your digital store with conditions based on cart value, purchased products, products in cart, or cart item categories. (Learn More)
Paid Memberships Pro (PMPro): Easily restrict content based on membership levels, status, or specific user field data. (Learn More)
MetaBox: Control block visibility based on the values stored in your MetaBox custom fields. (Learn More)
ProfilePress: Restrict content visibility based on users’ active membership plans in ProfilePress. (Learn More)
FluentCRM: Control block visibility based on FluentCRM user tags and contact lists. Perfect for targeted email marketing follow-ups. (Learn More)
WP Fusion: Show or hide content based on WP Fusion tags synced from your CRM, enabling deep CRM-driven personalization. (Learn More)
GTranslate: Display content conditionally based on the visitor’s selected language in GTranslate. (Learn More)

🚀 Workflow Boosters (Pro)

Condition Presets: Save frequently used condition combinations and reuse them across your site with a single click.
Custom PHP Logic: Implement highly specific or complex visibility rules using your own custom PHP functions.
Combine with AND/OR Logic: Build sophisticated visibility rules by grouping multiple conditions with flexible AND/OR logic.

See all Conditional Blocks Pro features & integrations
Advanced Usage
Managing WordPress content via blocks becomes easier when you know the tips & tricks. You can find more on our blog.
Draft content on live pages
Use the Lockdown condition to create draft blocks inside live content, and simply remove the condition when you’re ready to publish. You don’t have to worry about people seeing the content before it’s complete. Using the Lockdown Condition eliminates need to create a separate draft page.
Apply Conditions to Groups
One of our favorite methods of managing WordPress content is to use Group Blocks. If you setup a Group Blocks you can set conditions directly the Group, this means that all nested blocks inside the Group will automatically follow the same visibility conditions.
Design Patterns
Yes it’s also possible to pre-make dynamic templates using Conditional Blocks. You’ll have to make use of the WordPress Design Patterns. Simply make a patterns as you’ve also done while applying the visibility rules.
The patterns will be ready and be conditionally displayed when you insert it on a page. We personally use the same method on Synced Patterns too. (Previously known as Reusable Blocks in Gutenberg).
Restrictive content made easy
Control access to any block by clicking on it within the Block Editor and using the Condition Builder to add visibility rules. Perfect for members-only content.
Responsive designs simplified
Effortlessly adapt your blocks for mobile, tablet, or desktop display, automatically showing or hiding content according to screen sizes.
LEARN MORE

Get Pro: See pricing & go Pro today.
Documentation: Learn how to set up and use our features.
Blog: Read our guides and tutorials.
Website: Find out more about us and the PRO version.
X (Twitter): Follow us on X.

MORE Block Plugins

Find My Blocks: Locate all instances of blocks across your WordPress pages.

Compatibility
Conditional Blocks works with any theme or plugin that uses the WordPress Block Editor (also known as Gutenberg). Block widget & Full Site Editing (FSE) within themes are also supported.
Tested and compatible with:

Stackable Blocks
Spectra Blocks
Atomic Blocks
CoBlocks
Editorskit
WooCommerce Blocks (Product Blocks)
Easy Digital Downloads Blocks
Ultimate Addons for Gutenberg
Otter Blocks & Templates
GenerateBlocks
Kadence Blocks
Kadence Theme
Genesis Blocks
Twenty Twenty-Two theme
Twenty Twenty-Four theme
Wabi theme
Poe theme
WooCommerce Storefront
WordPress Site Editor
Gutenberg
WordPress Site Templates
OllieWP theme

For support or help with other plugins, please get in touch.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon