• Resolved net

    (@krstarica)


    How to disable all ads, i.e. all “Blocks” including “HTML Page Header Code” for specific 200 posts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Spacetime

    (@spacetime)

    Hello,

    shortcode [adinserter disable="1, 2, 3, …"] disables insertion of blocks with numbers 1, 2, 3 into post/page content. Use # to disable all blocks.

    This approach is also possible:
    https://adinserter.pro/documentation/black-and-white-lists

    Header code needs to be inserted via a block using this method:
    https://adinserter.pro/documentation/header-and-footer-code#page-specific-header-footer

    Thread Starter net

    (@krstarica)

    I understand that Black and White Lists are per block, so would need to add 200 post ids to black list to every block?

    Is there some general black list to avoid doing that and to avoid editing each post just to add shortcode?

    Plugin Author Spacetime

    (@spacetime)

    If you need to disable ads only for some posts then you need to list the posts somewhere.

    You don’t have to edit each post, you can automatically insert the shortcode only for those posts. Configure one block with the shortcode and insert it in the header for those posts – use the same approach for insertion as for the header code.

    Thread Starter net

    (@krstarica)

    That’s great, thank you!

    It is also important to use wp_head with higher priority than header code block is using, so blacklist shortcode can execute first.

    I think this question and answer should be added to FAQ.

    Plugin Author Spacetime

    (@spacetime)

    Thanks for the suggestion!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disable all ads including header for specific posts’ is closed to new replies.