Ads 468x60px

Pages

Sunday, April 30, 2006

Tip: Hiding the navbar

Update 24 May 2007: A blog visitor complained that the instruction didn't work for him. This post was written before New Blogger was introduced and perhaps it wouldn't work for New Blogger. If you are using New Blogger template, refer to How to hide navbar for New Blogger

Update 24 October 2006. Some people have very stong opinion about the hiding of the navbar as it violate Blogger TOS (Terms of Service). They feel that Blogger is asking very little of bloggers in return for providing this free service. Please read the rest of this post with that in mind. And be reminded that there are advantages of having a navbar at the top of your blog. However, many people are wary of the Next Blog link in the navbar which takes to to random Blogger blogs, some of which may contain explicit sexual content, hate messages, etc. Some educators who want to set up blogs for their students are understandbly wary of this and want to remove the navbar, and I can understand why.

The navbar is the bar at the top of every blogspot.com blog that contains from left to right, the Blogger logo, a search box, Search This Blog, Search All Blogs, Blog This!, Get Your Own Blog, Flag, Next Blog. It is by default dark blue in color, but it may have been changed to tan or some other color.

Many bloggers for some reasons or other want to hide this navbar. To hide the navbar, try adding this code in between the <style></style> tags, in the <head> section.

<!--Code to remove blogger navbar-->
#b-navbar {
height:0px;
visibility:hidden;
display:none
}
<!--End of code to remove blogger navbar-->


However, here are some reasons why one should keep the navbar. For one, I believe the navbar is required as per Blogger's Term of Service. Another is to allow visitors to navigate around your blog by using the blog search box at the top left-hand corner. In fact, on my blog, I have 2 search boxes, one in the navbar and one Google sitesearch box. I have noticed that the search results from the 2 boxes differ. One search result may turn up a relevant topic when the other one fails to do so.

NEWER POST    OLDER POST

0 comments:

Post a Comment