SharePoint 2010 Content Editor Web Part Hidden property is Disabled

Found an interesting issue today. Wanted to place some CSS code in Content Editor Web Part (CEWP) and hide it, so that it won’t appear to end-users. I added a content editor web part, placed some CSS code, went to web part properties, oops! Hidden property under Layout is disabled (greyed out)!!

content editor web part Layout hidden property is disabled

Cause: For some reason, SharePoint doesn’t allow us to hide web parts on publishing pages! So Content Editor Web Part’s Layout hidden property is disabled!!


Here is the workaround to fix SharePoint 2010 web part hidden grayed out: Just Append  ToolPaneView=2 to the URL to open the page in Edit mode. E.g.

This opens Add Web Parts Pane, from there we can add new CEWP to bottom zone of the page (Verified in SharePoint 2010 web part hidden property is not greyed out this time!) and  hide the web part with out any issue! 

sharepoint web part hidden disabled

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

4 thoughts on “SharePoint 2010 Content Editor Web Part Hidden property is Disabled

  • August 5, 2016 at 2:12 PM

    This didn’t work for me in 2010 either. You can export a hidden web part from another page type and then import it though.

  • July 19, 2016 at 4:45 PM

    This didn’t work for me… SP 2010.

  • June 24, 2015 at 6:10 PM

    Thank you so much for sharing! This was very helpful.

  • April 2, 2014 at 1:39 PM

    Works on 2013 as well. Thanks!


Leave a Reply