You may wish to hide a widget or element on one page and display it on the other, need to remove the sidebar on certain pages, or even display buttons on select pages. This is exactly where conditional tags come into play. There are a number of tags available for blogger which, if applied correctly, will help you modify elements of your template.
The following are a select few conditional tags you’ll require the most:
Download now (quick server)
Using conditional tags is simple. Each tag needs to be closed with a closing tag. All you have to do is select the suitable tag and place the content between the opening and the closing tag like this:
<b:if cond='THE_CONDITION_GOES_HERE'> ... </b:if>
You need to display the content only on Index Pages (homepage, archives and labels page). The following tag will be applied:
<b:if cond='data:blog.pageType == "index"'> ...ENTER CONTENT HERE... </b:if>
The double equals ” ” actually means . You can change the condition to , then just replace the first equal with an exclamation sign: ” = “.
Reversing a Condition:
<b:if cond='data:blog.pageType= "index"'> ... THE CONTENT ... </b:if>
In the example above, the content will show up on all pages other than “index” pages.
The ELSE Statement <b:else/>:
In case you need to display alternate content, insert a <b:else/> tag like this:
<b:if cond='data:blog.pageType == "index"'></b:if>
In the example above “Content 1” will only appear on Index Pages (homepage, archives and labels page), and if its not an Index Page, “Content 2” will be displayed.
Combining Conditions Together:
<b:if cond='data:blog.pageType == "item"'></b:if>
Finally, in the example above, the content will show up on all posts except a certain URL/Post specified.