
Now all of them are called conditional tag for an example: <data:blog.title/> this tag is use you dynamically get your blog name. If you add this tag anywhere of your theme HTML edit then you see your blog name on the site. If you still don't know anything then there is one more example for you:
On the theme HTML edit |
On the theme |
So let's talk about the top 7 blogger page types conditional tags
Archive Page
<b:if cond='data:blog.pageType == "archive"'>
Your Element Here
</b:if>
This conditional tag helps you to add any kind widget or element only for the archive page. By using this conditional tag you can customize the archive page.Index Page
For the home & search page
<b:if cond='data:blog.pageType == "index"'>
Your Element Here
</b:if>
This conditional tag helps you to customize and add any widget only for the home and search page.Only for the home page
<b:if cond='data:view.isHomepage'>
Your Element Here
</b:if>
Label Page
For all label
<b:if cond='data:blog.searchLabel'>
Your Element Here
</b:if>
This conditional tag helps you to add any kind of element for the search label page. Just add any widget you want.For specific label
<b:if cond='data:blog.searchLabel== "LABEL-NAME"'>
Your Element Here
</b:if>
This conditional tag is used for specifying the label page. If you want to add any widget for any specific label then simply you can use this label just add you are specific label name on the LABEL-NAME.Item Page
For all post
<b:if cond='data:blog.pageType == "item"'>
Your Element Here
</b:if>
If you want to add and customize the item option like read more button then you can use this conditional tag.For fast post
<b:if cond='data:post.isFirstPost'>
Your Element Here
</b:if>
If you want to customize the fast article then you can use this conditional tag.Static Page
<b:if cond='data:blog.pageType == "static_page"'>
Your Element Here
</b:if>
If you want to and any widget element on the page then you can use this conditional tag.Error Page
<b:if cond='data:blog.pageType == "error_page"'>
Your Element Here
</b:if>
This conditional tag used to add any widget on the 404 error page. You can create 404 error page with this conditional tag.Search Page
For all search result
<b:if cond='data:blog.searchQuery'>
Your Element Here
</b:if>
This conditional tag used to add any kind of widget on the search result page.For specific search query
<b:if cond='data:blog.searchQuery == "SEARCH-QUERY"'>
Your Element Here
</b:if>
This conditional tag used to add any widget for specific search terms. Just add the specific search terms on the SEARCH_QUARY.Conclusion
There is the end of this article. If you face any problem with the blogger conditional tag then simply comment down below I will try my best to help you. Thanks for with us.
Posting Komentar