Removing the first item in SP 2010 Navigation

I needed a way to remove the first item in my top level navigation in SharePoint b/c of branding and functionality. You’ll soon notice that this “Home” button cannot be removed with the normal Navigation settings menu.

I found a way to hide the first link in the second level navigation.

.s4-tn li.static > a{display: none !important;} /*Hide the first tab from second level nav.*/
.s4-tn li.static > ul a{display: block !important;} /*Hide the first tab from second level nav.*/
.s4-tn li:first-child {border:none;padding-left:0px;padding-right:0px} /*Hide the first tab from second level nav.*/

The source/inspiration came from here: http://erikswenson.blogspot.com/2010/09/hide-first-tab-in-sharepoint-2010.html

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.