Local SEO Agency

Reference Links

Visitor's Flag

Ads will display only at post page

Sunday, May 6, 2012

/* Ads will display only at post page */

<b:if cond='data:blog.pageType == "item"'>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
google_ad_host = "pub-xxxxxxxxxxxxxx;;
/* 336x280, created */
google_ad_slot = "xxxxxxx";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</b:if>
=========================
/* conditional code */
<b:if cond='data:blog.url == data:blog.homepageUrl'>
conditional code
</b:if>
======================
/* widget will only display at home page */
<b:widget id='WidgetID' locked='false' title='Widget title' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url == data:blog.homepageUrl'> //insert condition here
<b:if cond='data:title != ""'>
<h2 class='title'><data:title/></h2>
</b:if>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if> //End condition here
</b:includable>
</b:widget>

Free Career Predictions

Related Posts