Hide Items in Welcome Dropdown in Sharepoint

Hi ,
Some Clients want Developer to hide some items in Upper right Corner Welcome Dropdown in Sharepoint.
In Order to achive this i have used Jquery.
For testing i have added jquery in CQWP on only one page but if you want to get this working in whole portal meaning
from all pages you need to add this script in master page.
I have Welcome Dropdown like this

You want to hide  ‘Sign in as Different User’.
here is single line of script for that 
<script type=”text/Javascript” src=”path to jquery file”/>
<script type=”text/Javascript”>
  $(document).ready(function() {
  $(“*[id*=’_LoginAsDifferentUser’]”).replaceWith(“”); 
});
</script>

here is Output

Thanks
Ronak

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s