8/24/2011

SharePoint 2010: Replace the I Like It and the Tags and Notes icons

 

Don’t like the little smiley face icons in the 2010 ribbon?

    image

Change it: (hopefully to something better looking)

    image

 

Option 1:

If you have access to the web servers, you could edit the /Layouts/images/mossfgimg.png image:

image

(I rotated it 90 degrees to take up less space here.)

Editing the file on the server is a bad practice for a number of reasons.

Option 2:

Add a CSS style to your master page.

 

Steps:

  1. Create two 32 pixel by 32 pixel replacement icons 
      Mine are a bit ugly….
           image      image
     
  2. Upload the icons to a SharePoint library (or if you have access to the web servers, to the layouts/images folder)
     
  3. Add the new CSS below to your master page somewhere after where SharePoint loads its CSS:

    <SharePoint:CssLink runat="server" Version="4"/>
    <SharePoint:Theme runat="server"/>
    <style>
        your custom CSS goes here
    </style>

The CSS:

<style>

  #AddQuickTag_ctl00_ctl35 span span img
  {
    display:none;
  }

  #AddQuickTag_ctl00_ctl35 span:first-child 
  {
    background-image:url('/sites/yoursite/yourlibrary/img1.jpg')    
  }

  #TagsAndNotes_ctl00_ctl35 span span img
  {
    display:none;
  }

  #TagsAndNotes_ctl00_ctl35 span:first-child 
  {
    background-image:url('/sites/yoursite/yourlibrary/img2.jpg')    
  }

</style>

 

 

.

2 comments:

Anonymous said...

Awesome..!!!

thanks, looking for this for so long..!! :)

Casey said...

I can't get it to work. My CSS id's say 134 instead of 135 so I changed them.

When I implement, the icons on the page go away but my custom ones don't show up.

Any help would be appreciated.

**style tag**
#AddQuickTag_ctl00_ctl34 span span img
{
display:none;
}

#AddQuickTag_ctl00_ctl34 span:first-child
{
background-image:url(../../../SiteAssets/LikeBtn.png)
}

#TagsAndNotes_ctl00_ctl34 span span img
{
display:none;
}

#TagsAndNotes_ctl00_ctl34 span:first-child
{
background-image:url(../../../SiteAssets/TagsNotesBtn.png)
}

**close style tag**

Note to spammers!

Spammers, don't waste your time... all posts are moderated. If your comment includes unrelated links, is advertising, or just pure spam, it will never be seen.