Wednesday, September 15, 2010

Hide "Select or deselect" Checkbox from Web Part Title Bar

I was able to hide the checkbox from webpart title bar by adding the following CSS to my master page:


<style type="text/css">

.ms-WPHeaderCbxHidden{

display:none;

}

</style>


Using following style i was able to hide the arrow from webpart title bar by adding the following CSS to my master page:


<style type="text/css">

.ms-WPHeaderMenuImg{

display:none;

}

</style>


Hope This information helps you.

2 comments:

  1. Very nice. Thanks, Pravin. Also, if needed, this can be dropped into a Content Editor Web Part (edit the source HTML of the part to insert the style) so that it only affects one page.

    ReplyDelete
  2. This didn't work for me and generated errors when saving the masterpage file. Where should these changes be?

    ReplyDelete