View Categories

How to disable Plugins based on Page / Post or Post Types

2 min read

Disable Plugins on Specific Pages #

To disable a plugin on selected pages (like Contact, Shop, Blog, etc.), follow these steps:

  1. In the Manage Plugins screen, click the settings icon (⚙️) next to the plugin you want to configure.
  2. In the popup settings window:
    • Set Disable Plugin on to your preferred devices (e.g., All Devices).
    • Set Action to: Disable on Selected Pages
    • Under Page Type, choose:
      • Page, or
      • Post And Pages, or
      • Post And Pages & Custom Post Type
    • In the Select Pages field, search and select the pages where you want to disable the plugin (e.g., Contact Us, Shop, Blog, etc.).
  3. Click Save to apply the changes.

Disable Plugins on Specific Posts #

If you want to disable a plugin for selected blog posts or any specific post:

  1. Follow the same steps as above.
  2. Under Page Type, select:
    • Post, or
    • Post And Pages, or
    • Post And Pages & Custom Post Type
  3. Scroll to the Select Posts section and choose the individual posts you want to target.
  4. Click Save.
Disable Plugins on Specific Posts

Disable Plugins Based on Custom Post Types #

To disable or remove plugins associated with unused custom post types, follow these updated steps using the WP Plugin Manager plugin:

Step 1: Set Page Type to “Post, Pages & Custom Post Type” #

  1. Go to the plugin settings and open the configuration for the desired plugin (e.g., Elementor).
  2. In the Elementor Settings modal:
    • Set “Disable Plugin on” to your preferred device(s) (e.g., All Devices).
    • Set “Action” to Disable on Selected Pages.
    • For Page Type, choose:
      Post, Pages & Custom Post Type
  3. Make sure to check the boxes for Posts, Pages, or other post types as needed.
  4. Click Save to apply this setting.

Step 2: Select Custom Post Types from the Settings Tab #

  1. Now, navigate to the Settings tab at the top.
  2. Under Select Post Types, choose the specific custom post types you want to include (e.g., Products, Template Builder, etc.).
  3. Click Save Settings to finalize your changes.

By completing both steps above, WP Plugin Manager will disable the selected plugin(s) for the specified post types effectively.

Verify Plugin is Disabled #

After applying the settings, ensure the plugin’s CSS/JS assets are no longer loading on the disabled pages or posts. This confirms the plugin is successfully deactivated for those targets.

Scroll to Top