Hide: “The current page has been customized from its template…”


If you have customized a SharePoint 2010 aspx page by using SharePoint Designer, you may experience that when opening the modified webpage in your browser, that a yellow bar below the navigation bar will appear.

RevertToTemplate.png

If you want to hide this warning, please choose one of the to options below to do that.

 

Solution 1: (Not recommended)

With SharePoint Designer, open the masterpage (e.g: http://site/_catalogs/masterpage/v4.master) with “Edit File in Advanced Mode”, search for “s4-statusbarcontainer” and disable the DIV tags.

<!–div id=”s4-statusbarcontainer”>
    <div id=”pageStatusBar”>
    </div>
</div–>

Solution 2: ( recommended)

Add a Content Editor Webpart to the specific page, where you want to hide the warning and add the following css style:

<style type=”text/css”>
    body #pageStatusBar{height:0px; font-size:0px; padding:0px; border-style:none;}
< /style>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: