SharePoint 2019 - Modern UI - Page Title vanishes after Save

Brijendra Gautam 25 Reputation points
2023-07-18T09:54:24.31+00:00

I'm working on SharePoint 2019 On-premise, with Modern UI enabled on Modern Team Site.
When I try to create a Site Page then after Save/Publish and Refresh, Page title not displayed but when I click Edit then it appears again.

Screenshot in Edit ModeUser's image

Inspect show text in span after saving page before refresh
User's image

After refreshing page Title vanishes

User's image

Inspect show blank span tag with no text in it.

User's image

Developer console show no error, only warnings.
Does anyone know how to resolve this issue? Any help is appreciated.

Note: This is a Modern Team site created as a subsite in existing Classic Publishing Site collection. Issue doesn't appear in Communication Site collection.

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

4 answers

Sort by: Most helpful
  1. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-07-19T06:54:49.7666667+00:00

    Hi @Brijendra Gautam,

    Thank you for posting in this community.

    According to your detailed description, we do understand how frustrated you are now. However, I feel regretful to tell you that I don't have your problem in my test environment.

    User's image

    Although we can't reproduce your situation, we can work together to narrow down and resolve the situation. So, please kindly provide more information below to let us work further.

    1.Are other users with permissions facing the same problem? View through another computer or account.

    2.Whether all site pages have the same problem? You could create a new site page to check.

    3.Check if the same issue occurs with other SharePoint site collections.

    4.You could try to clear browser cache then restart it.

    5.Try to use a different browser or your browser's InPrivate mode to see if the same error occurs.

    6.If the problem persists, please describe to me the details of how you created the site pages, perhaps there is something wrong with the process of creating the pages. Please be careful not to disclose your private information.

    Thank you for your time and efforts in advance.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Stéphane Kochersperger 0 Reputation points
    2023-11-23T12:39:48.12+00:00

    Hello,

    I have exactly the same issue here : a modern site on SP2019 on-prem, with title disappearing from pages after saving.

    And also, same config: the parent site is a classic publishing site.

    @Brijendra Gautam have you been able to get any answer from MS support ?

    Thanks,


  3. Ling Zhou_MSFT 23,620 Reputation points Microsoft External Staff
    2023-07-20T08:04:54.77+00:00

    Hi @Brijendra Gautam

    The problem may be due to SharePoint version upgrades that cause old site sets to be incompatible with the modern UI.

    Perhaps we could try to see if SharePoint Designer can add page titles.

    You can click on the link to download SharePoint Designer: Download SharePoint Designer 2013.

    1.Open the site where the page you created is located.

    image (4)

    2.Find your page.

    image (5)

    3.Click the page file and edit file.

    User's image

    4.Try to add Page Title. Don't forget to save the file!

    Add mso:LayoutWebpartsContent under tag <mso:CustomDocumentProperties>:

    <mso:LayoutWebpartsContent msdt:dt="string">&lt;div&gt;&lt;div data-sp-canvascontrol=&quot;&quot; data-sp-canvasdataversion=&quot;1.4&quot; data-sp-controldata=&quot;&amp;#123;&amp;quot;id&amp;quot;&amp;#58;&amp;quot;cbe7b0a9-3504-44dd-a3a3-0e5cacd07788&amp;quot;,&amp;quot;instanceId&amp;quot;&amp;#58;&amp;quot;cbe7b0a9-3504-44dd-a3a3-0e5cacd07788&amp;quot;,&amp;quot;title&amp;quot;&amp;#58;&amp;quot;Title Region&amp;quot;,&amp;quot;description&amp;quot;&amp;#58;&amp;quot;Title Region Description&amp;quot;,&amp;quot;serverProcessedContent&amp;quot;&amp;#58;&amp;#123;&amp;quot;htmlStrings&amp;quot;&amp;#58;&amp;#123;&amp;#125;,&amp;quot;searchablePlainTexts&amp;quot;&amp;#58;&amp;#123;&amp;#125;,&amp;quot;imageSources&amp;quot;&amp;#58;&amp;#123;&amp;#125;,&amp;quot;links&amp;quot;&amp;#58;&amp;#123;&amp;#125;&amp;#125;,&amp;quot;dataVersion&amp;quot;&amp;#58;&amp;quot;1.4&amp;quot;,&amp;quot;properties&amp;quot;&amp;#58;&amp;#123;&amp;quot;title&amp;quot;&amp;#58;&amp;quot;Your_SITE_PAGE_NAME&amp;quot;,&amp;quot;imageSourceType&amp;quot;&amp;#58;0,&amp;quot;layoutType&amp;quot;&amp;#58;&amp;quot;FullWidthImage&amp;quot;,&amp;quot;textAlignment&amp;quot;&amp;#58;&amp;quot;Left&amp;quot;,&amp;quot;showKicker&amp;quot;&amp;#58;false,&amp;quot;showPublishDate&amp;quot;&amp;#58;false,&amp;quot;kicker&amp;quot;&amp;#58;&amp;quot;&amp;quot;&amp;#125;&amp;#125;&quot;&gt;&lt;/div&gt;&lt;/div&gt;</mso:LayoutWebpartsContent>
    
    

    Note to change your site page title.User's image

    Here is the result of my test:

    User's image

    Thank you for your time and efforts in advance. If there is any other assistance I can provide, please feel free to let me know.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Brijendra Gautam 25 Reputation points
    2023-07-20T16:02:49.3033333+00:00

    I've checked the code in SPD, it's already there in my page. Decoded code below:

    
    "properties":{
    	"title":"Pop Up script Created",
    	"textAlignCenter":false,
    	"imageSourceType":0,
    	"layoutType":"FullWidthImage",
    	"textAlignment":"Left",
    	"showKicker":false,
    	"showPublishDate":false,
    	"kicker":""
    	}
    }	
    

    Then I've compared the code between working page and this page it's same.

    So, I think, there is some issue with processing script which is not able to generate page title in my site page.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.