How to customize login page

We've added a logo to the login page, but I'd like to remove the 'Sign In' banner. When I REM out either: 

<asp:Content ContentPlaceHolderId="PlaceHolderSiteName" runat="server"/>


<asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server">

 I get an error on the page and it doesn't load. Is there a way to remove this without breaking the page?

Have more questions? Submit a request


  • 0
    Matthew McBride

    Any changes you want to make will have to be made to the master page. If you look at the code for the login page you will see the master page listed at the top in the Page directive. You will find the master page file in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS.

    The main layout is in a table where you will find the 'Sign In' banner built within a <td> tag wrapped around an <asp:ContentPlaceHolder> tag with the id="PlaceHolderPageTitleInTitleArea". The login page itself references these <asp:ContentPlaceHolder> tags which is why when you remove it from the login page, the master page causes an error since the page that inherits it does not reference it to give it any content.

     The best solution is to make a copy of the master page (simple.master in this case) and edit that, then reference the new master page from within the login page. You can remove the <asp:ContentPlaceHolder> tags from the master, just make sure you also remove the references in the login page. I would use copies of both the master page and login page while testing to make sure you don't break anything and you need to keep a backup in case you need to go back.

    David Fisher
    Software Engineer
    SharePoint Solutions
Please sign in to leave a comment.