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!
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 == "item"’>
All Your Widget Junk Goes Here. A Widget Code Placed Here Would Display Output Everywhere Except HomePage!
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 == "http://www.mypremiumtricks.com/onlythispage"’>
All The Code Shown Here would Output The Result Only On The Italics text Above. (Note: You must own the site!)
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!