3

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?

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

5 Answers 5

6

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.

11
  • It is not showing properties of Chrome Type..just the heading "Chrome Type" and under that there are no options..this is weird.
    – user342944
    Commented Jul 10, 2014 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? Commented Jul 10, 2014 at 9:02
  • Please attach a screenshot Commented Jul 10, 2014 at 9:08
  • postimg.org/image/rma963we3
    – user342944
    Commented Jul 10, 2014 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. Commented Jul 10, 2014 at 9:15
1

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

1
  • FYI for SPO users landing on this page, this option does not seem to exist in webpart properties for SPO sites.
    – TylerH
    Commented Mar 16, 2020 at 16:21
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.

1
  • worked for me and by far the easiest answer
    – Anthony
    Commented Oct 25, 2016 at 19:19
-1

You can always hide that html element with CSS

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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