Linux 软件免费装
Banner图

wpCodesLab Visibility Conditions for Elementor

开发者 wpcodeslab
更新时间 2026年11月20日 00:10
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

elementor visibility conditional display display conditions show hide widget

下载

1.0.0

详情介绍:

wpCodesLab Visibility Conditions for Elementor adds a powerful and lightweight Visibility Conditions panel directly to the Advanced tab of every Elementor element. Create conditional display rules, choose whether matching conditions show or hide the element, and let WordPress evaluate everything securely on the server before any HTML is rendered. Because restricted content is never rendered on the server, it never appears in the page source, cannot be inspected via developer tools, is never indexed by search engines, and adds zero weight to your page load. User Conditions Visitor & Session Conditions Flexible Logic & Actions Performance & Cache Guard

安装:

  1. Upload the plugin folder to /wp-content/plugins/, or install it via WordPress Admin under Plugins → Add New.
  2. Activate the plugin through the 'Plugins' menu in WordPress (Elementor 3.5+ must be installed and activated).
  3. Edit any page or template with Elementor.
  4. Select any Widget, Section, Column, or Container, navigate to Advanced → Visibility Conditions, and switch on Enable Conditions.
  5. Configure global settings under Settings → Visibility Conditions (caching rules, visit counting mode, cookie expiration, and debug options).

常见问题:

Does restricted content still load in the page source?

No. Conditions are evaluated on the server using Elementor's native render filters (elementor/frontend/{element}/should_render). If an element is restricted, its HTML, inline styles, and scripts are never generated or delivered to the browser.

Does this work with Elementor Flexbox Containers?

Yes. Visibility Conditions supports Flexbox Containers, Sections, Columns, and all standard and third-party Elementor widgets.

Will this work with my caching plugin?

Yes. When Cache Guard is enabled in Settings → Visibility Conditions, the plugin automatically signals your caching system (WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache) and sends standard no-cache headers on pages containing active visibility rules.

What counts as a visit in the Visitor Count condition?

A visit represents a unique browsing session. The counter increases once per session (when a visitor arrives after closing their browser or after session expiration), rather than on every individual page view.

How do I edit elements if they are hidden by a condition?

By default, the plugin's Editor Preview setting is configured to "Always show restricted elements while editing", keeping all elements visible and easily selectable on the Elementor canvas. You can toggle this behavior under Settings → Visibility Conditions.

How can I troubleshoot or test my visibility rules?

Enable "Debug mode" under Settings → Visibility Conditions. When logged in as an administrator, you will see a debug bar at the bottom of the page showing the current user status and rule results, as well as descriptive HTML comments next to restricted elements in the page source.

更新日志:

1.0.0