Linux 软件免费装
Banner图

Block Visibility — Conditional Visibility Control for the Block Editor

开发者 ndiego
outermostdesign
更新时间 2024年4月1日 20:00
PHP版本: 7.4 及以上
WordPress版本: 6.5
版权: GPL-2.0
版权网址: 版权信息

标签

dynamic content visibility conditional blocks restrict blocks conditional content

下载

2.5.0 2.5.1 1.8.0 1.5.0 1.5.2 1.6.0 2.6.0 3.0.4 1.0.1 1.7.1 2.5.2 2.5.3 2.5.4 3.0.0 1.5.3 1.9.1 2.0.0 1.3.0 1.5.1 2.1.0 2.1.1 2.2.0 2.3.0 2.4.0 2.4.1 1.4.0 1.9.0 2.1.2 2.4.2 2.4.4 1.0.0 2.4.3 2.4.5 1.1.0 1.4.1 1.4.2 1.2.0 1.4.3 1.7.0 2.3.1 2.4.6 3.0.1 3.0.2 3.0.3 3.1.0 3.1.1 3.1.2 3.2.0 3.3.0 3.4.0

详情介绍:

Effortlessly create dynamic content in WordPress that will increase conversions, enhance the user experience, and improve your workflow. With this no-code solution, control which blocks are visible on your website and who can see them. Schedule content to show or hide at a specific time. Display exclusive promotions to your customers or members. Restrict blocks to specific user roles, screen sizes, query strings, WooCommerce products, EDD downloads, ACF fields, WP Fusion tags, and more. Block Visibility is built exclusively for the WordPress Editor (Gutenberg) and is designed to work with any WordPress block. This includes blocks natively provided by WordPress, third-party blocks, and even block-based widgets.

安装:

  1. You have a couple of options:
  2. Go to Plugins → Add New and search for "Block Visibility." Once found, click "Install."
  3. Download Block Visibility from WordPress.org and make sure the folder is zipped. Then upload via Plugins → Add New → Upload.
  4. Activate the plugin through the 'Plugins' menu in WordPress.
  5. From the 'Plugins' page, head directly to the plugin 'Settings' page.
  6. Start applying conditional visibility controls to all blocks!

屏幕截图:

  • Schedule blocks using start and end date/time settings. Day-of-week and time-of-day recursion are also available. The plugin provides complete block scheduling and works with all Gutenberg blocks, including WooCommerce, as seen here.
  • Show or hide blocks on mobile devices, tablets, desktops, and more.
  • Control who can see each Gutenberg block with user role restrictions. Great for personalization.
  • Create unique marketing campaigns using query string parameters to display personalized messaging.
  • Current integrations include Advanced Custom Fields, Easy Digital Downloads, WooCommerce, and WP Fusion.
  • General plugin settings to enable/disable certain functionality, including user permissions and Full Control Mode.
  • Choose which conditional visibility controls you want to use on your site.
  • Disable or enable conditional visibility on certain block types with the Block Manager.

升级注意事项:

1.4.0 Version 1.4.0 includes a necessary file structure change that will deactivate the plugin when upgrading and throw an error message. But don't worry, simply re-activate Block Visibility and you are good to go. We apologize for this inconvenience and it will not happen again.

常见问题:

Who should use Block Visibility?

Block Visibility is a powerful yet simple plugin that gives marketing agencies, bloggers, eCommerce websites, and small business owners the power to conditionally show or hide blocks on their websites. The need to hide Gutenberg blocks varies. Whether you need to restrict content to specific users like members or launch a promotional campaign at a particular time with block scheduling, the applications are endless. If you need dynamic content control on your WordPress website, you need Block Visibility.

Do conditional visibility controls really work with any block? (What is Full Control Mode?)

Yes! However, not all block types are enabled by default. Controls are only provided to blocks that can be added directly to a page/post by the block inserter. Therefore, some specialized blocks, such as child blocks, are not included by default. An example is the individual Column block that is part of the larger Columns block. That said, you can enable Full Control Mode in the plugin settings. This setting removes all restrictions and adds conditional visibility controls to every block. You probably will not need Full Control Mode in most cases, but it is there if you do! Furthermore, while this plugin is designed to be compatible with all blocks, the WordPress ecosystem is ever-expanding. If you find a conflict with a specific block, please let us know in the plugin support forum, and we will investigate. We are committed to bringing visibility block controls to every Gutenberg block.

Can Block Visibility be used with any WordPress theme?

Yup, this plugin is not theme-specific. You just need to run the latest WordPress version and use a theme that supports the block Editor. This plugin provides zero functionality to the Classic Editor.

Will more conditional visibility controls be added in the future?

Yes, and if you have a specific idea of what you would like to see, please submit a feature request in the plugin support forum on WordPress.org.

Does this plugin work in the Site Editor (Full Site Editing)?

As of version 1.4.0, Block Visibility is supported in the Site Editor, which is available when using a block theme. We are committed to ensuring 100% compatibility with all Full Site Editing features. Please let us know in the plugin support forum if you find bugs or compatibility issues.

Does Block Visibility work with Elementor and other page builders?

No. Block Visibility is designed specifically for the WordPress block Editor and, therefore, does not work on pages that the Elementor editor or another page builder controls. So long as you edit native WordPress "block" content, Block Visibility will work.

Is block visibility controlled using CSS?

Visibility is controlled primarily on the server, so if a block should be hidden based on the set block controls, it will not even be rendered. This functionality ensures the plugin does not load any additional resources on the front end of your site, thereby optimizing performance. The one exception to this is the Screen Size block controls. Visibility by screen size requires the use of CSS. This CSS is loaded to the front end of your site if, and only if, these controls are enabled. You can opt to disable this CSS and add the necessary styles yourself. Visit the plugin Knowledge Base to learn more.