Disable ads (Overview)

Strategically deactivating ads on specific pages or for distinct user groups can be pivotal in crafting a smooth and practical user experience. Whether it’s ensuring a distraction-free environment on landing or sales pages or offering ad-free access for premium members, the flexibility to selectively turn off ads is a valuable feature within Advanced Ads.

Our WordPress plugin empowers you to customize your ad injection precisely, sparing you from the inconvenience of unwanted ad placements. Advanced Ads offers various options to curate a more personalized user journey, from customizing ads based on user roles to ensuring specific pages on your WordPress website remain ad-free.

Disabling options in the main settings

You can set general rules to switch off ads for many page types or visitors in the main plugin settings under Advanced Ads > Settings > General > Disable ads. These options include disabling ads

  • in the frontend, but keep the plugin working in the backend
  • on 404 pages
  • on non-singular pages like archives and category pages
  • in secondary queries like those created by similar posts plugins
  • in the RSS feed
  • by user roles like Administrators or Editors
  • for bots (not recommended; see this post)
  • for post types like pages or WooCommerce products (comes with Advanced Ads Pro)
General options to disable ads on specific page types

These options also apply to the Google Auto ads code added using Advanced Ads.

Disable individual ads using conditions

Customize ad visibility by employing conditions. For example, by utilizing the related Display Conditions, you can turn off particular ads based on criteria such as specific URL parameters, categories, or page types. 

To tailor ad visibility for distinct user groups, use  Visitor Conditions like the user’s browser width. A typical use case is to disable specific ads on mobile devices. 

setup to target an ad to mobile devices
Example setting to target an ad unit only to mobile devices

Here are a few examples of how to use such conditions:

Disable all ads on specific post types

If you wish to turn off all ads on a specific post type globally, go to Advanced Ads > Settings > General > Disable ads. This feature is available in Advanced Ads Pro. For users of the basic plugin version, include the post type display condition in each ad unit you want to exclude.

hide ads from specific post types
Use this option to turn off ads on specific post types

Disable all ads on specific pages

Prevent displaying all ads on a particular page by visiting the relevant edit page and locating the Ad Settings meta box in the document settings or below the main content.

Advanced Ads Pro expands this capability, offering an additional option to turn off ads automatically injected through specific placements within the content.

These placements are:

  • Before Content
  • Content
  • After Content
  • Random Paragraph
  • Content Middle
option to turn off ads

If you enable the checkboxes, you will find the CSS classes .aa-disabled-page and .aa-disabled-content on the respective pages.

Keep Track

When you deactivate ad injection on your pages using these checkboxes, monitoring which pages this setting affects can be challenging.

To identify the pages where you have applied this setting, open the Post or Pages overview page. Click on the ‘Screen Options’ link at the top of the screen. You can select the columns you want to see in this view via checkboxes. Advanced Ads adds the ‘Ad Injection’ column, indicating when either of the deactivation options is in effect.

Option to turn off ads on a specific page
Control in which posts you disabled ads

Disable all ads for specific user roles

At times, it becomes necessary to deactivate all ads for specific user roles. The quickest method is to utilize the corresponding option in Advanced Ads > Settings > General > Disable ads.

A typical scenario for employing this option is on community sites that provide ad-free memberships. Advanced Ads integrates with leading membership plugins, enabling you to choose from all registered user roles and memberships to conceal ads.

Turn off ads for specific user roles
Use this option to turn off ads for specific user roles

Disable Google AdSense Auto ads

Google AdSense Auto ads might cause excessive advertising on your website. The configurations established in the main settings also apply to Google AdSense Auto ads integrated by Advanced Ads.

AdSense Auto Ads Settings
If you turn on Auto Ads in your AdSense account, Google ads might excessively populate your website

For those overseeing the Google Auto ads code within an ad unit code, it’s possible to implement Display and Visitor Conditions. Refer to this page for detailed instructions on this setup.

Subscribe to our newsletter and get 2 add-ons for free!

* indicates required

Remove all ads on your site permanently

The above choices enable you to deactivate certain or all ads for specific users and pages. If you aim to eliminate all ads permanently, kindly refer to our guide on Removing Ads from WordPress.

Make it better

Increase your ad management skills without spending more time.
Join over 150,000 publishers and AdOpts increasing their ad revenue.