Works with every WordPress page builder

Show content to
the right people,
automatically.

Conditional visibility for WordPress — by user role, device, date, WooCommerce status, location, and 9 more conditions. No coding.

showif — visibility preview
Current visitor
Guest · Desktop Subscriber · Desktop Guest · Mobile VIP · Desktop
[showif loggedin="false"]
show
[showif role="subscriber"]
hide
[showif device="mobile"]
hide
[showif url_param="vip=1"]
hide
Evaluated server-side — PHP 8.2 0.3ms avg
14
Condition types
8+
Page builders
3
Integration methods
0
Lines of code needed
Three integration methods

Choose how you work

Shortcode for any builder. CSS class for zero markup. Visual rule builder for teams. All three generate the same result.

Shortcode

Wrap any content in [showif]. Works inside posts, pages, widgets, and every builder's text module.

[showif role="subscriber"] Member-only content here [/showif] // else block ↓ [showif_else] Please sign in. [/showif_else]

CSS Class

Add a class directly in your builder's Advanced → CSS Class field. No shortcode, no markup changes — just a class name.

// In builder → Advanced → CSS Class: showif--device-mobile showif--role-subscriber showif--loggedin-true // Negate with "not-" prefix showif--not-loggedin-true

Admin Rule Builder

Create named, reusable rules in the ShowIf admin panel. Use the optional AI assistant to generate rules from plain English.

// Describe in plain English: "Show only on weekends to logged-in subscribers" // → Generates rule slug: [showif rule="weekend-subscribers"]
14 condition types

Every condition you'll ever need

Combine multiple conditions with AND logic. Negate any condition with a single prefix.

User Role

role="subscriber"

Login Status

loggedin="true"

Device Type

device="mobile"

Time of Day

time="09:00-17:00"

Date Range

date="2026-12-01:2026-12-31"

Day of Week

day="saturday,sunday"

Country

country="TR,DE,US"

WooCommerce

woo_spent=">100"

URL Parameters

url_param="ref=vip"

Cookies

cookie="user_type=vip"

Scroll Depth

scroll="50"

ACF Fields

acf_field="is_vip=1"

User ID

user_id="42,87"

Named Rules

rule="weekend-deal"
Universal compatibility

Works with every page builder

Native integrations for the most popular builders. Shortcode and CSS class methods work everywhere else.

Elementor
Gutenberg
Divi
WPBakery
Bricks
Oxygen
Kadence
Beaver Builder
Syntax reference

Readable. Predictable. Powerful.

Write shortcodes by hand or generate them with one click. The syntax is consistent across all 14 condition types.

Role & membership
// Members-only content
[showif role="subscriber"]
  Your exclusive content here.
[/showif]

// Else block for guests
[showif_else]
  Sign in to view this content.
[/showif_else]
WooCommerce VIP offer
// Customers who spent over $100
[showif
  loggedin="true"
  woo_spent=">100"
]
  VIP discount: LOYAL20 for 20% off
[/showif]
Device & time targeting
// Mobile app download banner
[showif device="mobile"]
  Download our app →
[/showif]

// Weekend sale (server-side, accurate)
[showif day="saturday,sunday"]
  Weekend 20% off — ends Sunday!
[/showif]
CSS class (no shortcode)
// In builder → Advanced → CSS Class:
showif--device-mobile
showif--role-subscriber
showif--loggedin-true

// Negate any condition:
showif--not-loggedin-true
// → visible to guests only
Start today

Ready to show the right content
to the right people?

Explore the live demo store — built entirely with ShowIf conditional visibility rules.

From $29 — one-time purchase. Updates included.

Demo credentials shown on the login page