WordPress.org

Ready to get started?Download WordPress

Forums

WordPress doesnt display adsense properly in posts (3 posts)

  1. eddyj
    Member
    Posted 8 years ago #

    Ok I start a post and insert my adsense code, it should display correct it doesnt.

    It seems wordpress in posts doesnt work with javascript or adsense WHY?

    seems like a simple thing to make work.. but it doesnt..

  2. irakrakow
    Member
    Posted 8 years ago #

    If your WordPress blog is hosted at wordpress.com, you cannot insert adsense code into your posts.

    If your blog is hosted at your Web site, you add the adsense HTML in one of the theme pages, such as index.php, sidebar.php, or header.php. From the Admin Panel, go to Presentation-Theme Editor. Insert your Adsense code outside of the WordPress tags. You only need to do this once and it works for all posts. This is far better than having to add the Adsense code for every post, which won't work anyway because WordPress reformats your entry to make it conform to HTML standards.

    There's a nice article at problogger.net that illustrates how to place adsense code after, say, 3 posts.

    Another option is to use a WordPress plugin. A number of these exist - I use Adsense Deluxe. There are quite a few others. With a plugin, you can control where and when you place adsense code. In addition, (most of the time) the plugin does not change the code for the theme, which is a Good Thing. Check out the WordPress plugin database for others.

  3. eddyj
    Member
    Posted 8 years ago #

    PRoblem with that is that.. if i want to inser just a random bit of HTML to display a FLASH PLAYER.. I only want it in 1 post. I dont want it in every post

    how do i do that

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.