Wednesday 26 December 2012

Sharepoint 2010 Global Navigation Hide First Item (Collection Tab)

Now, you can probably remove it programatically with a solution like this, but I just wanted to do it with some style tweaks.

So just stick this in your custom css file:
#s4-topheader2 a.static.menu-item[accesskey="1"] { display: none !important; }


That works for most browsers but not IE6 (spit) cos of it's CSS2 failitude. For that you can use some sweet jQuery in a jiffy:
<script type="text/javascript">
$(function () {
 $('#s4-topheader2 a.static.menu-item:first').hide();
});
</script>
 
 
Its done :) 

1 comment:

  1. Hi....How to hide all the Global navigation Items using Jquery?

    ReplyDelete