🔥 Lifetime Deal — buy now before we go subscription. Solo $99 · Agency $179
Claim Deal
DOCUMENTATION

URL-Based Conditions

Hide the admin bar on specific URLs, URL paths, or for specific post types using exact matching and wildcard patterns.

2 min read    Last updated Mar 3, 2026

Overview

Hide the admin bar on specific URLs, URL paths, or for specific post types using exact matching and wildcard patterns. This feature is part of the Conditional Visibility category in Hide Admin Bar Pro.

Feature Details

CategoryConditional Visibility
TypeAdmin Bar Control
PlanPro
Configurable SettingsYes

Prerequisites

  • Hide Admin Bar Pro plugin must be installed and activated.
  • Pro license required for this feature.

How to Configure

  1. Go to your WordPress admin dashboard.
  2. Navigate to Settings > Hide Admin Bar Settings.
  3. Click the Conditional Visibility tab (Pro features appear as separate tabs).
  4. Configure the settings as needed and click Save.
  5. Changes take effect immediately — no page refresh needed for visitors.

How It Works

Define URL conditions to control where the admin bar appears. Supports multiple condition types: full URLs (https://pluginstack.dev/blog/), path patterns (/blog/, /shop), wildcard patterns (/blog/*, /products/*), and post type matching (post_type=product). Enter one condition per line. The matching engine handles trailing slashes, regex-based wildcards, and WordPress post type detection automatically.

Benefits

  • Page-specific admin bar control.
  • Wildcard patterns for entire sections (e.g., /blog/*).
  • Post type matching for custom post types.
  • Exact URL and path matching support.
  • One condition per line — easy to manage.

Frequently Asked Questions

How do I enable URL-Based Conditions?

Go to Settings > Hide Admin Bar Settings in your WordPress admin and navigate to the appropriate Pro tab.

Can I use this with other visibility conditions?

Yes, all visibility conditions work together. The plugin evaluates conditions in order: global settings, role-based, capability-based, and then Pro conditions (time, URL, device, per-user). If any condition triggers hiding, the admin bar is hidden.

What happens if I accidentally hide the admin bar for administrators?

The plugin provides a secure reset URL on the settings page. You can also access the reset URL directly to restore all settings to their defaults without needing the admin bar.

Need More Help?

Our support team can help with setup, troubleshooting, and best practices.

Contact Support