Tuesday, June 19, 2012

Hide Selection Check Box in the Web Part Title Using a Content Editor

Recently I was engaged in a OOTB SharePoint project. I got a requirement to remove the Select Deselect check box which is shown to the anonymous users as well. Since the master page cannot be customized I used a simple trick using a content editor web part.





1) Add a content editor web part in the page which the check box has to be removed.
2) Simply add the following style to the content editor
  <style>
    .ms-WPHeaderTdSelection
    {
         display none;
     }
  </style>

Remember to set the Chrome type to None since this web part is a hidden one.Save and publish the page.