Wednesday, March 9, 2011

Adsense Ads Only on Home page or Post pages of Blogger/ WordPress blog

you can show different ads on homepage and post pages on your Blogger or  WordPress blogs. All you have to do is use the conditional tags with the ad code. You may use a conditional tag to show ads only on homepage and another conditional tag to show ads only on post pages. In this way, you can show different ads on homepage and blog post pages.

When you place ads to your Blogger or WordPress blog they appear on Home page, Post Pages and other pages. Some of you want to show the ads only on Home page or Posts pages.


Loging In your Blogger select Dashboard ---> Design ---> Edit HTML ---> Select Expend Widget Template :

Note : Before doing anything take the backup of your template by click on Download Full Template.




Show ads on Home Page only

Find These ads line in  HTML Code

Change your ad code as follows

<b:if cond='data:blog.pageType != &quot;item&quot;'> YOUR AD CODE </b:if>

Show ads on Individual Posts Page only

Change your ad code as follows

<b:if cond='data:blog.pageType == &quot;item&quot;'> YOUR AD CODE </b:if>

Show Adsense/other Ads Only on Home page or Post pages of WordPress blog

Show ads on Home Page only

Change your ad code as follows

<?php if (is_home()) { ?>
YOUR AD CODE
<?php } ?>
Show ads on Individual Posts Page only

Change your ad code as follows

<?php if (is_single()) { ?>
YOUR AD CODE
<?php } ?>
That is it Thank you

Wednesday, February 23, 2011

Show Adsense Ads/WordPress blog and other Ads Only on Home page or Post pages of Blogger

 You can find the similar post related to it. But here is the simpler procedure you will like. you want to show the ads only on Home page or Posts pages of blogger and wordpress.

Show Adsense Only on Home page or Post pages of Blogger blog

Show ads on Home Page only

your ad code as below:

<b:if cond='data:blog.pageType != &quot;item&quot;'> YOUR AD CODE </b:if>

Show ads on Individual Posts Page only

put your ads code between the red code :

<b:if cond='data:blog.pageType == &quot;item&quot;'> YOUR AD CODE </b:if>

Show Adsense Ads Only on Home page or Post pages of WordPress blog

Show ads on Home Page only

put your ads code between the red code :

<?php if (is_home()) { ?>
YOUR AD CODE
<?php } ?> 


Show ads on Individual Posts Page only

put your ads code between the red code :

<?php if (is_single()) { ?>
YOUR AD CODE
<?php } ?>