Digital Marketing Consultant

Reference Links

Visitor's Flag

Showing posts with label Blogger Conditional Tags. Show all posts
Showing posts with label Blogger Conditional Tags. Show all posts

Targeting Specific Pages with Conditional Tags in Blogger

Tuesday, June 26, 2012

List of conditional tags
Below is a list of conditional tags that target specific pages.

1. Index (list) pages
<b:if cond='data:blog.pageType == "index"'>
<-- Adsense code here -->
</b:if>

2. Post (item) pages
<b:if cond='data:blog.pageType == "item"'>
<-- Adsense code here -->
</b:if>

3. Static pages
b:if cond='data:blog.pageType == "static_page"'>
<-- Adsense code here -->
</b:if>

4. Archive pages
<b:if cond='data:blog.pageType == "archive"'>
<-- Adsense code here -->
</b:if>

5. Home page
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<-- Adsense code here -->
</b:if>

6. Specific page/url
<b:if cond='data:blog.url == "PUT_URL_HERE"'>
<-- Adsense code here -->
</b:if>

7. Post and static pages
<b:if cond='data:blog.url == data:post.url'>
<-- Adsense code here -->
</b:if>

8. Label-search pages
<b:if cond='data:blog.searchLabel'>
<-- Adsense code here -->
</b:if>

9. First post
This is not a page, but a conditional for the first post. Used for targeting the first post on multi-post pages.
<b:if cond='data:post.isFirstPost'>
<-- Adsense code here -->
</b:if>

Free Career Predictions

Related Posts