SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am attempting to insert some HTML into the header of a custom web part (next to the title in the ms-WPHeader div).

I have been unable to find any documentation or instructions and would appreciate the help.

share|improve this question
if you doing this task without code then you use webpart properties for that. go to the webpart properties and in toolpane see the 'title' in Appearance part. you can modified that easily. – Ravi Suthar Aug 17 '12 at 7:29
up vote 0 down vote accepted

SharePoint expects to be in control of the Crome around the WebPart content and has no option for you to specify HTML to go next to the Title. If you want to add commands which can be applied to the web part then SharePoint expects you to either add Verbs to the dropdown in the header or add a contextual tab to the ribbon.

But if you really want to add html in the header then you have to do it through JavaScript.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.