Top 3 Must Know b:if Commands! [HTML]

Hey guys! Everyone knows that HTML rules the internet and cyber world as every site, has some HTML tags and attributes. It is simply impossible to create any single website without proper HTML tags and syntax. Today, I came with a very interesting tag in HTML which is <b:if> You can do quite interesting things with this tag. I googled it because one of my friend want it. Well, lets know what are the commands..

1. Show An Element Only On HomePage:

Sometimes you want to show a toolbar only on your homepage. In that case, you should go with the following widget:

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

All Your Widget Junk Goes Here. A Widget Code Placed Here Would Display Output Only On HomePage and No Other Place!

</b:if>

2. Show An Element Everywhere Excluding HomePage

Sometimes you want some social buttons to appear only on your posts or pages. Follow this trick for that guys!

<b:if cond=’data:blog.pageType == &quot;item&quot;’>

All Your Widget Junk Goes Here. A Widget Code Placed Here Would Display Output Everywhere Except HomePage!

</b:if>

3. Show A Widget On Specific Place

If you want to display a certain page or site only, then you can use the following coding:

<b:if cond=’data:blog.url == &quot;http://www.mypremiumtricks.com/onlythispage&quot;’>

All The Code Shown Here would Output The Result Only On The Italics text Above. (Note: You must own the site!)

</b:if>

From Editor’s Desk….

These were some top 3 easy commands from me to display a widget anywhere. If you have some more, then feel free to submit it to me by commenting below! We want more and more suggestions! Thanks!

Enjoy!!

Mehul Mohan Author – This post is written by Mehul Mohan, he runs his own blogger’s blog MyPremiumTricks.com. He is crazy about discovering new tips and tricks in the blogosphere and newly emerged tech toys. Follow Him: @Twitter | Facebook

One comment on “Top 3 Must Know b:if Commands! [HTML]

  1. thanks krishan for this info

Leave a Reply

Your email address will not be published. Required fields are marked *


nine − = 2

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>