• Resolved apachx

    (@apachx)


    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

    (@spacetime)

    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 should be enabled)
    – Shortcode: Checked (button Manual)
    – Any other settings to limit insertion (e.g. black-list 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

    (@apachx)

    Thank you! Now everything works fine.

    Plugin Author Spacetime

    (@spacetime)

    Great!

    I would appreciate if you could write a short review of the plugin
    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.