Custom page layout – remove duplicate page title/name

When I firstly created the News Page Layout, I didn’t notice it at all! In the same line of Page Title, we have got a hyperlinked page name in front of the title. As I clicked the page name, the page refreshed, of course, it’s pointing to itself.

duplicatepagenames.JPG

It took me ages to google how to remove the page name. The closest I could get was one article mentioned the ‘double page title’, and the author removed the actual page title but left the linked page name there! No, that’s not what I want!

After several failed attempts, I finally found the control in the page layout’s HTML file. It sits inside the content placeholder id=”PlaceHolderPageTitleInTitleArea”.

Look for the syntax ContentPlaceHolder id=”PlaceHolderPageTitleInTitleArea” in the file, it’s the breadcrumb bit you will need to removed.

breadcrumb

Delete from the 2nd line to <!–SPM:</SharePoint:SPTitleBreadcrumb>–>, see highlighted above, and save the file.

Here, you will only see the page title now, and not hyperlinked.

nobreadcrumb.JPG

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s