Title: Deactivate &#8220;Header Code&#8221; for some articles
Last modified: March 5, 2018

---

# Deactivate “Header Code” for some articles

 *  Resolved [apachx](https://wordpress.org/support/users/apachx/)
 * (@apachx)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/deactivate-header-code-for-some-articles/)
 * Hi.
    I inserted “adsense enable page level ads” code in the header (tab “Header
   Code”). But I need to disable adsense ads on some pages. How to deactivate the
   code I added in the header for a specific list of articles (where article_id 
   in (1, 2, 3, .. ))?

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/deactivate-header-code-for-some-articles/#post-10042051)
 * Do the following:
 * Put the code in one code block with the following settings:
    – Automatic insertion:
   Disabled – Alignment and Style: No wrapping – Page types: enabled as needed (
   normally all [page types](https://adinserter.pro/page-types) should be enabled)–
   Shortcode: Checked (button Manual) – Any other settings to limit insertion (e.
   g. [black-list](https://adinserter.pro/lists) post IDs)
 * Then for the Header code use shortcode for this block:
    `[adinserter code="N"]`
   where N is block number.
 * The code will be inserted in the `<head>` section according to your settings.
 *  Thread Starter [apachx](https://wordpress.org/support/users/apachx/)
 * (@apachx)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/deactivate-header-code-for-some-articles/#post-10043195)
 * Thank you! Now everything works fine.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/deactivate-header-code-for-some-articles/#post-10043199)
 * Great!
 * I would appreciate if you could write a short review of the plugin
    [https://wordpress.org/support/plugin/ad-inserter/reviews/](https://wordpress.org/support/plugin/ad-inserter/reviews/)
 * Thank you,
    Igor

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

The topic ‘Deactivate “Header Code” for some articles’ 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

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

 * 3 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/deactivate-header-code-for-some-articles/#post-10043199)
 * Status: resolved