0

I've been trying to change the window title shown at the top of the browser and on the tabs.

I've used the following code which gets me halfway there. (We have Sharepoint 2013)

    <!--MS:<SharePoint:PageTitle runat="server">-->
        <!--MS:<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server">-->
        <!--ME:</asp:ContentPlaceHolder>-->
    <!--ME:</SharePoint:PageTitle>-->

But unfortunately it prefaces my page name with "Pages -" and I can't seem to get rid of that. I want the tab and browser title to say "TestTest" instead of "Pages - TestTest".

I'm sure it's something simple but i can't seem to get it. Any tips would be greatly appreciated.

top of browser image

4
  • I've tried all the suggestions, some of which i've seen before. Thanks to all! But nothing is working. :-( I forgot to add that I'm doing this in the HTML version of my masterpage. Does that make a difference? I think it does.
    – C. Poulain
    Commented Dec 12, 2014 at 16:23
  • 1
    Did you found a solution for this? My only way is to change it in the PageLayout for the site, where I remove the "<SharePointWebControls:ListProperty Property="Title" runat="server"/> - " in the contentPlaceholder PlaceHolderPageTitle.
    – emo
    Commented Jun 10, 2015 at 8:12
  • @emo -- what you've done is the correct solution to this question. Using jQuery to change this is totally unnecessary.
    – Larz
    Commented Oct 9, 2015 at 17:35
  • I think this answers the question better. sharepoint.stackexchange.com/questions/175434/…
    – prog_24
    Commented Mar 31, 2016 at 15:37

4 Answers 4

2

Follow this link described how to do that: http://www.topsharepoint.com/change-title-tag-on-sharepoint-sites

using jQuery also you can fix it:

<script type="text/javascript">

    $(document).ready(function() {

        document.title = 'My Page';

    });

</script>
3
  • Thanks. I used the info in the link you included. My main error was thinking i did this in the masterpage when i should have been doing it page layout.
    – C. Poulain
    Commented Dec 12, 2014 at 17:57
  • This is totally unnecessary. Just go to your page layouts and remove "<SharePointWebControls:ListProperty Property="Title" runat="server"/> - " in the contentPlaceholder PlaceHolderPageTitle
    – Larz
    Commented Oct 9, 2015 at 17:36
  • Necessary or not, it beats making the change on every single page layout.
    – Draghon
    Commented Feb 24, 2016 at 20:36
1

Please try with the following:

<asp:Content ContentPlaceholderID="PlaceHolderPageTitle" runat="server">
    <SharePointWebControls:FieldValue ID="PageTitle" FieldName="Title" runat="server"/>
</asp:Content>
0

Or this!

<asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server">
    <SharePoint:ProjectProperty Property="Title" runat="server"/>
</asp:Content>
0

What worked for me from the browser...

  1. click edit page
  2. in the ribbon click edit properties
  3. enter the desired tab name in the Document Title field
  4. SAVE & Publish / check in

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.