According to Google,
Conditional tags are Blogger template tags that allow you greater flexibility in your template design. We call them conditional because they allow you to specify parts of your template that appear only under certain conditions
To target the page we need conditional tags.Different platform like Blogger,Wordpress have different Conditional Tags.Conditional Tag is used to show widget,text,codes etc. in specific page or not to show in specific page.
List of Conditional Tags.
To show widget in these Page only.
- Index Page.
Index page means Homepage,label page and yearly archive page.(Older/newer Post too)
<b:if cond='data:blog.pageType == "index"'> Content Here </b:if>
Post page too means item page.
<b:if cond='data:blog.pageType == "item"'> Content Here </b:if>
Homepage means main page.
<b:if cond='data:blog.url == data:blog.homepageUrl'> Content Here </b:if>
<b:if cond='data:blog.pageType == "archive"'> Content here </b:if>
Label page means search page too.
<b:if cond='data:blog.searchLabel'> Content </b:if>
<b:if cond='data:blog.url == "PUT_URL_HERE"'> Content Here </b:if>
IF you want to make the content not to show in that page only then use ! (is not equal to) like this
<b:if cond='data:blog.pageType != "archive"'> Content here </b:if>
In this conditional tag content will not be shown in archive page but it will be shown in other page as ! (is not equal to) is used.
Enjoy using conditional Tags.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
0 comments on "List of Conditionals Tags for Blogger.":
Post a Comment
We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam