Support » Plugin: Ad Inserter - WordPress Ads Management » Blocking Ad Inserter?

  • Resolved Jon



    I love this plugin, but wish to block it on my mobile theme.

    I do not mind how I block it, so long as I can do it.

    I guess there are several options, but I do not know how to implement.


    1. Add a rule to the head section in the mobile theme to stop Ad Inserter.

    2. Add a rule in Ad Inserter to only insert into specific themes (could be the best option?)

    3. Add a rule in the mobile theme to insert blocking shortcodes to all generated posts and pages.

    Or something else maybe?

    Any ideas? Doing as although Adsense looks great on mobile, DFP ads less so, and need to get DFP on my site asap.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Jon


    Almost did it.

    I deactivated the plugin in WordPress admin and then at the bottom of functions.php added:

    // Include the plugin.php file so you have access to the activate_plugin() function
    require_once(ABSPATH .’/wp-admin/includes/plugin.php’);
    // Activate your plugin
    activate_plugin(ABSPATH .’/wp-content/plugins/ad-inserter/ad-inserter.php’);

    which I read about here:

    But it then activated it globally…..

    Plugin Author Igor


    I will try to find an elegant solution for such requirement.

    I would really appreciate some kind of mobile specific options for this reason. I have a large banner ad that looks great on a desktop, but on mobile devices it overlaps my sidebar. Right now my website looks terrible on mobile, and I’m sure my mobile bounce rate it going to skyrocket.

    Plugin Author Igor


    OK, it is on the todo list.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Blocking Ad Inserter?’ is closed to new replies.