Just for You

SEO in SharePoint


Hey lambert, this is an issue we have encountered on ALL our sharepoint websites, As soon as you try and add custom text to the title tag in the masterpage (not pagelayout) a second blank title tag is generated at the bottom of the head element.

This is a bug in sharepoint that i haven’t found a work-around for so far…

<contentplaceholder id="PlaceHolderPageTitle " runat="server"></contentplaceholder> – Companyname
or
<contentplaceholder id="PlaceHolderPageTitle " runat="server"></contentplaceholder> – Companyname
or
Companyname – <contentplaceholder id="PlaceHolderPageTitle " runat="server"></contentplaceholder>

doesn’t render “- companyname” at all in the cases i’m looking at now.

HOWEVER,
if you include the suffix/prefix for the title in a literal enclosure, then it does work:

<contentplaceholder id="PlaceHolderPageTitle " runat="server"></contentplaceholder><literal runat="server" id="Literal1"> – CompanyName</literal>

Source

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *