Skip to content
Docs

Visibility Logic troubleshooting

Most Visibility Logic problems come from testing in the Elementor editor or as an administrator, from page caching, or from a condition that is not enabled. Find your symptom below; each entry says what you see, why it happens and how to fix it.

What you see: an element you set to hide is still visible, or an element set to show for some visitors is visible to everyone.

Why: the Elementor editor always shows every element, so you can edit it. On the live page, the rule runs for whoever is viewing it, including administrators: if you are logged in as an administrator, you see what an administrator sees.

Fix: check these in order.

  1. Look at the live page, not the editor. To see it as a visitor, open it in a private browser window where you are not logged in.
  2. In the General section of the Visibility tab, make sure Enable Visibility Logic is Yes.
  3. Make sure at least one condition section has its own Enable switched on and filled in. With no condition enabled, the element is always shown.
  4. Check Show/Hide action: Hide hides the element when the conditions match; Show shows it only when they match.
  5. Check Conditions Type: with All, every enabled condition must match. Some conditions, such as Post/Page and IP & Referrer, count each filled-in field as its own check.
  6. Go to Settings > Visibility Logic, Options tab, and make sure the condition is switched on. A disabled condition has no effect.
  7. If the condition needs another plugin (ACF, WooCommerce, Easy Digital Downloads, Elementor Pro, WPML, Polylang or TranslatePress), make sure that plugin is active.
  8. Clear your page cache (see the next entry).

What you see: logged-out visitors see content meant for members, mobile visitors get the desktop version, a scheduled banner does not appear or disappear on time, or the result changes after you clear the cache.

Why: Visibility Logic decides on the server, when the page is built. A caching plugin, your host’s cache or a CDN can save one version of the page and serve it to everyone, so the rule is not checked again for each visitor. Visibility Logic already turns off Elementor’s own element cache on pages that use it; page caches are outside its control.

Fix:

  • Most page caches do not cache pages for logged-in users. That keeps User Role, User Meta, WooCommerce Users and EDD Users correct for logged-in visitors, but logged-out visitors all share one cached copy.
  • Exclude pages from the cache when their rules depend on the visitor: Geo Location, IP & Referrer, URL Parameters, Browser Type, or guest versus logged-in content.
  • For Device Type, turn on your cache’s separate mobile cache, or exclude the page.
  • For Date Time, a cached page changes only when the cache is refreshed. Set a short cache lifetime for the page, or clear the cache when the schedule starts and ends.
  • After you change a rule, clear the page cache.

What you see: an element is hidden, but its text or links can be found in the page source or with the browser’s developer tools.

Why: Keep HTML/Hide by CSS is on for that element. It keeps the HTML in the page and hides it with display: none.

Fix: switch Keep HTML/Hide by CSS off. The hidden element is then not sent to the browser at all. Keep it off for anything that must stay private.

What you see: sections such as Post/Page, Geo Location or WooCommerce Users are missing from the Visibility tab, or have no settings.

Fix: check these in order.

  1. Both plugins must be active: Visibility Logic for Elementor (free) and Visibility Logic Pro. Pro does nothing without the free plugin and shows a notice with an Install Visibility Logic or Activate Visibility Logic button.
  2. Update the free plugin. Pro shows a notice when the free plugin is too old for it, and some Pro conditions need a recent free version.
  3. Go to Settings > Visibility Logic, Options tab, and switch the condition on.
  4. Install the plugin the condition needs: Elementor Pro for Dynamic Conditions, WooCommerce for WooCommerce Users, Easy Digital Downloads for EDD Users. The subscription options of WooCommerce Users appear only with WooCommerce Subscriptions active.
  5. Activate your license under Settings > Visibility Logic Pro activation so you get Pro updates (see Install Visibility Logic).

What you see: the Geo Location section only shows “This option requires Maxmind API account ID and license key setup!”, or elements with a location rule are always hidden or always shown. Administrators may see a line starting with “Admin notice:” on the page.

Fix:

  • Setup notice: save your MaxMind Account ID and License key under Settings > Visibility Logic, Settings tab. See Create a MaxMind account and license key.
  • “Admin notice: Cannot authenticate with MaxMind” or “Cannot access this MaxMind server”: the account ID or license key is wrong, or the key was removed in MaxMind. Generate a new key and save both values again.
  • “Admin notice: IP address not found”: MaxMind has no location for the visitor’s IP address. This is normal on a private network address. On a local site that sees you as 127.0.0.1, the plugin looks up a United States address instead, so test real locations on a live site.
  • Wrong country for everyone: if your site is behind a proxy or load balancer, the plugin may see the proxy’s address instead of the visitor’s. Cloudflare’s visitor IP header is supported. For other proxies, ask your host to pass the real visitor IP to WordPress.
  • A visitor’s location is remembered for 24 hours. A change (for example a VPN switched on) can take up to a day to show for the same IP.
  • Exclude geolocated pages from the page cache (see Rules look wrong for some visitors).

What you see: an element with Date FROM/TO appears or disappears a few hours early or late.

Fix: fixed in Visibility Logic 2.5.2: Date FROM and Date TO now use the site time zone, like the times of day. Update the plugin from Dashboard > Updates. If you had shifted your dates by the UTC offset to work around it, set them back to the site time. Also check that Settings > General > Timezone is your local time zone.

What you see: with Hide when empty on, a Flexbox container disappears from the live page even though some of its widgets should be visible.

Fix: fixed in Visibility Logic 2.5.2, which counts widgets placed directly in a container. Update the plugin from Dashboard > Updates.

Meta key that starts with an underscore does not match

Section titled “Meta key that starts with an underscore does not match”

What you see: a User Meta (or Pro Advanced User Meta or Post/Page meta) rule on a key such as _my_field never matches.

Fix: fixed in Visibility Logic 2.5.2 (and Pro 2.4.2 for the Post/Page meta search): the Meta Name list shows keys exactly as stored. Update, then open the rule and pick the key with the underscore again: a rule saved with an older version may hold the key without it.

What you see: with Visibility Logic Pro on PHP 8, a page fails with an error mentioning array_intersect() when an element uses Post/Page meta with Is array and contains.

Fix: fixed in Visibility Logic Pro 2.4.2. Update Pro from Dashboard > Updates (or download the zip from your account). A field that is not a list now simply does not match.

User has purchased any product never matches

Section titled “User has purchased any product never matches”

What you see: in WooCommerce Users, User has purchased any product does not match customers who have orders.

Fix: fixed in Visibility Logic Pro 2.4.2, which reads orders through WooCommerce, so it works with High-Performance Order Storage (HPOS) and with the classic storage. Update Pro from Dashboard > Updates.

  • Pro customers: contact priority support with the page URL and a description of the rule.
  • Free users: ask on the WordPress.org support forum of Visibility Logic for Elementor.
  • License and download questions: License and account.