WordPress.org

Ready to get started?Download WordPress

Forums

How to disable adsense on specific pages header (2 posts)

  1. gideonson
    Member
    Posted 1 year ago #

    Hello, my website is http://www.thenetng.com. I will like to disable Google Adsense on specific pages (http://thenetng.com/diary-of-a-mischievous-lagos-girl/ in particular) and create a "Sensitive Content Warning" for that specific page. Can anyone please tell me how to do that or recommend a plugin(s) that might be useful?

    Thank you.

  2. gerald@WPcustoms
    Member
    Posted 1 year ago #

    you need to use conditional tags in your theme.

    <?php if (is_page(14)) { ?>
    show this content only on page with id#14
    <?php } ?>

    http://codex.wordpress.org/Conditional_Tags

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.