Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.