The current page has been customized from its template. revert to template.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.