user

Hi, I am Stanley!

Hello everybody. I’m Stanley, a free handsome bootstrap theme coded by BlackTie.co. A really simple theme for those wanting to showcase their work with a cute & clean style.

Please, consider to register to our newsletter to be updated with our latest themes and freebies. Like always, you can use this theme in any project freely. Share it with your friends.

Chủ Nhật, 8 tháng 3, 2015

About Blogger Conditional Tags and How To Use Them Properly

Conditional tags provide us better control over our templates, allowing us to specify what part of our template appears only under certain conditions.

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.

List of conditional tags

The following are a select few conditional tags you'll require the most:

HOMEPAGE:<b:if cond='data:blog.url == data:blog.homepageUrl'>

FIRST POST:For targeting the first post on multi-post pages.<b:if cond='data:post.isFirstPost'>

SPECIFIC PAGE/URL:<b:if cond='data:blog.url == "ENTER_URL_HERE"'>

POSTS (ITEM):<b:if cond='data:blog.pageType == "item"'>

STATIC PAGES:<b:if cond='data:blog.pageType == "static_page"'>

INDEX PAGES (INCLUDES HOMEPAGE, LABEL PAGES AND ARCHIVE PAGES):<b:if cond='data:blog.pageType == "index"'>

ARCHIVE PAGES:<b:if cond='data:blog.pageType == "archive"'>

POSTS AND STATIC PAGES:<b:if cond='data:blog.url == data:post.url'>

LABEL-SEARCH PAGES:<b:if cond='data:blog.searchLabel'>

404 ERROR PAGE:<b:if cond='data:blog.pageT