How To : Add Adsense In WordPress Blogs

Adsense is the most preferred CPC advertising system, If you started out with WordPress adding adsense code into wordpress can be a bit confusing.Follow these steps to implement adsense in your wordpress blogs.

  • Obtain your Adsense code from your Adsense Account.
  • Log into your wordpress blog,
    Click Design Tab,
    Then Click the Theme Editor,
    Clickย  Single Post (single.php) on the right hand side from the Theme Files
  • If you want the ad below the title of the post,
    Findย  this code <div class=”postContent”> and place the adsense code right above it. google-adsense-implementation
  • If you want the Adsense ad after the post you have to place the adsense code after the first </div> of the <div class=”postContent”>google-adsense-implementation2

Wrapping Adsense Around Text

You can also wrap adsense around the text in the single-post pages.To wrap adsense around the text follow these steps

To wrap the text to right of the ad, add your adsense code in between
these lines :

<div style=”display:block;float:left;margin: 0px 10px 0px 0px;”>

Your Adsense add script

</div>

  • To wrap the text to the left of the ad, add your adsense code in between these lines.

<div style=”display:block;float:right;margin: 0px 10px 0px 0px;’>

Your Adsense add script

</div>

Liked It ?? Share It ๐Ÿ™‚Share on FacebookShare on StumbleUponTweet about this on TwitterShare on Google+Digg thisBuffer this page
Similar Post  How To View Webpage Source Code In External Editor From Firefox.

17 comments

Leave a Reply

Your email address will not be published. Required fields are marked *