Dedicated to development, configuration, and tips and tricks for both WSS 3.0 and MOSS

Posted by Aaron Varga on Thursday, 19 Feb 2009 01:51

If you’ve ever had the need to hide the first tab in your SharePoint site, you know it’s not as easy as it sounds.  Luckily with a little CSS finesse, you can.  Let’s take a look at a typical SharePoint site:

image


As you know, you can go to Site Settings > Navigation, and modify the nodes that appear on both the Global Navigation (top link bar), and the Current Navigation (quick launch).  However, there’s nothing there that allows you to change the first tab!

image


Using the super-secret method of looking at the page’s source, you can find the actual HTML which renders the first node, and as you can see, it has an ID of zz1_TopNavigationMenun0:

image


Simply add the following CSS to your master page or to a CSS file your master page is referencing:

<style type="text/css">
    #zz1_TopNavigationMenun0 {
        display: none }
</style>

 

Poof!  The first tab is gone!

image

Posted by Aaron Varga on Tuesday, 27 Jan 2009 05:04

Once in awhile you’ll find a need to add little widgets or utilities to your SharePoint page, such as the weather, and RSS feed, or some other eye candy.  While they don’t offer a ton of great functionality, they’re often pleasing to the users’ eyes and may make for a better web experience.  Luckily there are a ton of these types of components floating around the web, including ones from Google Gadgets or WidgiPedia.

Since these are usually just a link to a JavaScript file and some HTML, the Content Editor Web Part can be used to display these on your SharePoint page.  For example, I added a couple lines of code from here for a clock:


image


How about weather?

image


Or even a formatted RSS Reader?

image


And if you need a break from productivity, add a game or two :)

image


Google Gadgets is a great place to find hundreds of these, but there are a ton of other places to get these as well, and many of them may actually be useful, and not just pretty eye candy!