In a Page component like Header or Footer are not editable,Is there a way that i can hide these component in Experience Editor mode. Or do not load the component at all in Experience Editor.
1 Answer
You can check if page is opened experience editor mode.
@if (!Sitecore.Context.PageMode.IsExperienceEditor)
{
<!-- Header Markup -->
}