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. this is not actually a error. this is a warning message.
To resolve this, you can use one of the below steps.
First way:
Add the CSS in the master page.
<Style type = "text/CSS">
Body # pagestatusbar {Height: 0px; font-size: 0px; padding: 0px; border-style: none ;}
</Style>
2nd way:
The following style attribute to the first Div:
<Div id = "s4-statusbarcontainer" style = "display: none">
<Div id = "pagestatusbar">
</Div>
</Div>
3rd way:
Add the below code in the head section.
<Head>
<Title> </title>
<SCRIPT type = "text/JavaScript">
Executeordelayuntilscriptloaded (hidewarning, "sp. js ");
Function hidewarning (){
VaR statusbarcontainer = Document. getelementbyid ('s4-statusbarcontainer ');
If (statusbarcontainer! = NULL ){
VaR messagespan = Document. getelementbyid ('pagestatusbar ');
If (messagespan! = NULL ){
If (messagespan. innerhtml. indexof ('the current page has been customized from its template. ') =-1)
Statusbarcontainer. style. Display = 'inline ';
Else
Statusbarcontainer. style. Display = 'none ';
}
}
}
</SCRIPT>
</SCRIPT>
</Head>
Http://sanjeetsatpathy.blogspot.com/2013/01/the-current-page-has-been-customized.html