Title: Page exceptions not working
Last modified: September 30, 2018

---

# Page exceptions not working

 *  Resolved [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/)
 * Hello,
 * This plugin seems great but unfortunately the page exceptions are not working
   on my site and I cannot understand why.
 * When I enable the header, ads appear on every page of my site and in all possible
   locations, regardless of whether I have selected manual shortcodes, used white
   lists to make it relevant only to a specific page, or tried the other exception
   options available.
 * I have disabled the header for the time being because I do not want ads on every
   page of my site and wrapped in the text, but if you have any suggestions for 
   how to solve this problem I would really appreciate it.
 * Kind Regards,
 * Jon
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fpage-exceptions-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737552)
 * Please enable remote debugging:
    [https://wordpress.org/support/topic/ad-inserter-support-how-to-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-how-to-ask-for-help/)
 *  Thread Starter [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737582)
 * Hi, I read that post and enabled remote debugging by ticking “remote debugging”
   on the ad inserter plugin on my site ([see here](https://thecomedycrowd.com/wp-content/uploads/2018/09/Screen-Shot-2018-09-30-at-20.54.21.png)).
   Is it not working?
    -  This reply was modified 7 years, 7 months ago by [jon001](https://wordpress.org/support/users/jon001/).
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737586)
 * No debugging data.
 * Can you attach screenshot of block settings?
 * For page specific header code check
    [https://adinserter.pro/documentation/plugin-settings#header-footer](https://adinserter.pro/documentation/plugin-settings#header-footer)
   under section “Page-specific Header and Footer code”
 *  Thread Starter [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737588)
 * This is an example of the block settings when I am using white listing rather
   than shortcodes – [screen shot](https://thecomedycrowd.com/wp-content/uploads/2018/09/Screen-Shot-2018-09-30-at-20.59.23.png)
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737592)
 * The settings from this block would insert code only on page with url `/opportunities/`
   
   But you have automatic insertion disabled and shortcode also seems to be disabled.
 * Where would you like to insert this block?
 *  Thread Starter [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737593)
 * I would like to insert it only on the page with url /opportunities/
 * But it doesn’t do that. Using these settings, if I enable the header it will 
   display on all pages on my site and in all possible blocks on those pages (even
   though I have limited the max blocks to 2 in the settings)
 *  Thread Starter [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737596)
 * I have also done the same but enabling shortcodes, and adding this to the header:
 * [adinserter code=”1″ check=”exceptions”]
 * But again the same thing happens.
 * I have enabled the header now so ads are showing on the site on all pages despite
   these settings.
    -  This reply was modified 7 years, 7 months ago by [jon001](https://wordpress.org/support/users/jon001/).
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737605)
 * The shortcode has some strange double quotes.
 * Please use this one
    `[adinserter code="1"]`
 * Whitelisting url should be enough.
 * But if you put this shortcode in the header then you need to enable shortcode
   for block 1:
    [https://adinserter.pro/documentation/manual-insertion](https://adinserter.pro/documentation/manual-insertion)
 * Currently you have code for AdSense auto ads on page
    [https://thecomedycrowd.com/opportunities/](https://thecomedycrowd.com/opportunities/)
 * inserted twice in the header.
 * Make sure the code is inserted only once (if needed).
    Maybe is this causing 
   issues.
 *  Thread Starter [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737618)
 * I am not sure how it is inserted twice. I have added the code to the Header tab
   in the Ad Inserter settings, and I am only using 1 block.
 * Am I right to have the same code inserted in the Block as in the Header?
 * i.e. this is inserted in both Block 1 and the Header:
 * <script async src=”//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”>
   </script>
    <script> (adsbygoogle = window.adsbygoogle || []).push({ google_ad_client:“
   ca-pub-1790967100395xxx”, enable_page_level_ads: true }); </script>
 * I’ve used xxx to replace numbers for this example.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737671)
 * This code on page
    [https://thecomedycrowd.com/blog/](https://thecomedycrowd.com/blog/)
   is inserted only once.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737688)
 * If you can’t figure out where is the second insertion coming from and would like
   me to take a look at setting [let me know](http://igorfuna.com/contact/contact-igor-funa)
   and refer to this thread.
 *  Thread Starter [jon001](https://wordpress.org/support/users/jon001/)
 * (@jon001)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737739)
 * The code shouldn’t be inserted at all on this page – [https://thecomedycrowd.com/blog/](https://thecomedycrowd.com/blog/)
   because I have whitelisted a different URL.
 * I’ll refer to the thread as you suggest. Thanks for helping with this.

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Page exceptions not working’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

## Tags

 * [exceptions](https://wordpress.org/support/topic-tag/exceptions/)

 * 12 replies
 * 2 participants
 * Last reply from: [jon001](https://wordpress.org/support/users/jon001/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/page-exceptions-not-working/#post-10737739)
 * Status: resolved