Quantcast
Channel: SharePoint Diary
Viewing all articles
Browse latest Browse all 1058

SharePoint 2010 Content Editor Web Part Hidden property is Disabled

$
0
0

Found a 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
SharePoint web part hidden disabled
Cause: For some reasons, SharePoint doesn't allow us to hide web parts on publishing pages! So Content Editor Web Part's Layout hidden property is disabled!!

Workaround:
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. http://sharepoint.crescent.com/sitepages/home.aspx?ToolPaneView=2

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


Viewing all articles
Browse latest Browse all 1058

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>