Tuesday, March 13, 2012

Remove the "Add as Colleague" link from a My Site

Here is a simple trick that you can use to hide the "Add as Colleague" link on your My Site deployment in the event that you aren't quite ready to enable that functionality for your users.

  1. Open your browser and enter http://MySiteWebApp/person.aspx
  2. Click on Site Actions -> Edit Page
  3. Locate the Bottom Zone and click Add a Web Part
  4. Under Categories, select Media and Content
  5. Under Web Parts, select Content Editor
  6. Click the Add button
  7. Locate the newly added web part and click on the dropdown arrow in the upper right hand corner
  8. Select the Edit Web Part option
  9. Under Layout, place a check in the Hidden checkbox
  10. In the Content Editor web part, click on the link that reads Click here to add new content link
  11. In the Format Text ribbon, click on the HTML button and select Edit HTML Source
  12. In the HTML Source dialog, enter the following HTML:
    <style> .ms-my-addcolleague { DISPLAY: none }</style>
  13. Click OK
  14. Click OK
Ideally, the best solution is to add ".ms-my-addcolleague { DISPLAY: none }" to a your site's .css, but this is certainly a nice little trick to demonstrate the concept.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.