Thursday, April 21, 2011

How can remove or hide "My Newsfeed" and "My profile" link on top ribbon in my site in SharePoint 2010

Add below script in <head> .... </head> section in master page :

<script type="text/javascript" src="http://demo.haacked.com/hide-anchor/lib/jquery-1.3.2.min.js"></script>

<script type="text/javascript">


$(function() {
 var $spans = $(".menu-horizontal span");
var val = "My Content";
if (val) {
//alert(val);
$spans.filter(':contains(' + val + ')').show();
$spans.filter(':not(:contains(' + val + '))').hide();
} else {
$spans.show();
//alert("m here");
}
});
</script>

No comments:

Post a Comment