About me
I live in Lund and work, well, at probably the best company in the world
Tag Cloud
Active Directory
AD
ajax
Android
api
app
Apps
ASP.NET
azure
C#
CAML
Chuvash
Client Object Model
codeplex
console
csom
csr
css
css3
database
devtools
extension
git
github
google chrome
html
html5
javascript
jQuery
jQuery tmpl
js
jslink
jsom
json
keyboard
keyboard layout
LINQ
linux
localization
log
masterpage
ModalDialog
monitoring
office365
onet.xml
Performance
Powershel
PowerShell
raspberrypi
REST
rättigheter
script
Serverinstallation
Sharepoint
SharePoint 2010
sharepoint 2013
sharepoint2013
sharepoint apps
sharepoint online
SP.js
spapp
SPField
SPList
SPListItem
spo
SPWeb
subversion
tips
ubuntu
VHD
Visual Studio
webpart
webparts
windows
xml
Top posts
Certiffications


Blog Stats
- 597,593 hits
Recent Comments
Blogs I Follow
- Daniel Chronlund Cloud Tech Blog
- Вула Чăвашла
- Discovering SharePoint
- Bram de Jager - Architect, Speaker, Author
- SharePoint Dev Lab
- GUID(E) To SharePoint
- SharePoint Dragons
- Mai Omar Desouki
- Cameron Dwyer
- paul.tavares
- Share SharePoint Points !
- Simple Stuffs
- Jimmy Janlén "Den Scrummande Konsulten"
- Aryan Nava
- SPJoel
- SharePointRyan
- SharePoint 2020
- Aharoni in Unicode
- ... And All That JS
- blksthl
Be careful this cannot be used, the classes for pop up menus are generated dynamically on the page, and that class can be applied to a number of menus I assume depending on the order which they load on the page, which isnt the same every time, so for instance this hides something in the site actions menu, or the new button on a library sometimes.
You are totally right, John! I realized that too. Fortunately, I didn’t need that then. But while using that I saw that sometimes Site Actions -Edit Page disappeared. These IDs are really generated dynamically. Thanks for your comment. I’ll update my post.
Hi Anatoly. Thanks for the solution. but the problem we are facing one problem after implementing this.
Once we make this change and when login to the portal next time, the “Edit Page” link under site action menu is not getting displayed and the My Site Link is getting displyed. any suggestion?
Hi Vishal. Unfortunately we cannot rely on these IDs, as John in previous comment mentioned, because these IDs are generated dynamically. I’ll update my post. One possible solution would be use attribute selectors… Something like .ms-MenuUIUL li[text=’My Site’] { display: none;}
Thank you Anatoly, that worked perfectly in all browsers! I had problems with the first suggested solution, because it would hide other menu items, like “edit this page” from the site settings dropdown!
Hi, The amended solution does not work in IE7.
Pingback: Material SharePoint » Hide ‘My Site’ Link from Welcome User Dropdown Control
.ms-welcomeMenu #mp1_0_0{
display:none;
}
.ms-welcomeMenu #mp1_0_1{
display:none;
}
.ms-welcomeMenu #mp1_0_2{
display:none;
}
.ms-welcomeMenu #mp1_0_3{
display:none;
}
.ms-welcomeMenu #mp1_0_4{
display:none;
}
.ms-welcomeMenu #mp1_0_8{
display:none;
}
.ms-welcomeMenu #mp1_0_9{
display:none;
}
these work for me.
Thank you for sharing your solution. Appreciate.