03-22-2018 06:45 AM
03-22-2018 06:45 AM
I’ll start by saying I’m not a developer, so apologies, but I raised a supported call as told it was a development issue so they couldn’t help.
When using the Design Manager (SharePoint Online) to create a custom page layout, the resultant page includes the page Name and Page Title in the layout.
This does not occur with the default layouts, and there doesn’t appear to be a way to remove the page name field, it doesn’t appear as a control in page layout html template?
To reproduce the issue,
The problem is, now at the top of the viewed page you’ll see both page Title and page Name.. so you get name with spaces 1 and name-with-spaces-1 displayed… This doesn’t occur with default page layouts.
Microsoft gave me the following code snippet, BUT this removes both Title and Name.
How do I go about removing the Page Name from the layout, permanently for subsequent new pages.
Thanks in advance .
03-22-2018 12:18 PM - edited 03-22-2018 12:19 PMSolution
One way to remove it, is by downloading your Page Layout HTML file first. You can download from the "Edit Page Layouts" screen in Design Manager. Then open this file in your favorite HTML editor (Notepad for example...). Look for the code below and remove it. Then save your file and upload it back. You can drag and drop from your file system onto the "Edit Page Layouts" screen in Design Manager. Publish the Page Layout and your change should be visible everywhere the Page Layout is used and also for future pages.
Hope this helps!
<!--SPM:<SharePoint:SPTitleBreadcrumb runat="server" RenderCurrentNodeAsLink="true" SiteMapProvider="SPContentMapProvider" WelcomePageUsesWebTitle="false">--> <!--SPM:<PATHSEPARATORTEMPLATE>--> <!--SPM:<SharePoint:ClusteredDirectionalSeparatorArrow runat="server"/>--> <!--SPM:</PATHSEPARATORTEMPLATE>--> <!--SPM:</SharePoint:SPTitleBreadcrumb>-->
by Mark Kashman on September 26, 2017
by Mark Kashman on March 07, 2017