Multiple ways to hide My Settings/Sign out/Personalize/My Profile in Welcome Username control in SharePoint 2010
Jquery to hide My Settings, Personalize this page, Sign in as different user
jQuery(document).ready(function($){
$("[text='Sign in as Different User']").remove();
$("[text='My Settings']").remove();
$("[text='Personalize this Page']").remove();
});
Hide My Site and My Profile using CSS
To hide the menu options, add the below CSS in master page
To hide the menu options, add the below CSS in master page
.ms-MenuUIUL LI[text='My Site'] {
DISPLAY: none
}
.ms-MenuUIUL LI[text='My Profile'] {
DISPLAY: none
}
.ms-MenuUIUL LI[text='My Settings'] {
DISPLAY: none
}
This is not localization safe
ReplyDeleteI chose to use LI[onmenuclick*="userdisp.apsx"]