2

I have a Custom Page Layout and I have placed a Content Editor Webpart to display some introductory text. I want to hide the title as there was this chrome type property in webpart which appears blank and cant set it to none.

If I remove the title text it appears as UNTITLED. now what to do?

  • didn't got you. Why Chrome type none is not helping you?? – Varun Verma Jul 10 '14 at 8:54
  • Could you post a screenshot of what you are describing? – TempaC Jul 10 '14 at 9:20
  • There's a link to a screenshot in the comments to my answer. – Christoffer Jul 10 '14 at 9:26
5

If the chrome type does not help you, you can just add a blank space as title. Just tried it out and it works. It's a ugly way to do it, but it works.

  • It is not showing properties of Chrome Type..just the heading "Chrome Type" and under that there are no options..this is weird. – user342944 Jul 10 '14 at 8:59
  • It's really weird. Are the web part modified in any way? Does the options show on the CEWP in any other site collection? – Christoffer Jul 10 '14 at 9:02
  • Please attach a screenshot – Varun Verma Jul 10 '14 at 9:08
  • postimg.org/image/rma963we3 – user342944 Jul 10 '14 at 9:12
  • Looks like you are using a custom masterpage / css.. when you are editing the webpart, use F12 developer tools where the dropdown should be, and see if there's any missing element or so. – Christoffer Jul 10 '14 at 9:15
1

if you want to do programmatically, put FrameType as None in webpart properties, it will help.

1

Edit the web part and set "Chrome type" to "None". http://www.isacantx.org/SharePointTraining/TrainingPages/HideWebPartTitle.html

If it does not work or if you wanna do grammatically, then in the Page_Load() of the webpart, add below code.

protected void Page_Load(object sender, EventArgs e)
{

((System.Web.UI.WebControls.WebParts.WebPart)(sender)).ChromeType = System.Web.UI.WebControls.WebParts.PartChromeType.None;

}

It worked for me.

0

I was having the same problem, but if you simply change the drop down under "appearance" to "none", click OK and then save the page, it will then disappear.

  • worked for me and by far the easiest answer – Anthony Oct 25 '16 at 19:19
-1

You can always hide that html element with CSS

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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