How to add text in a default search page in SharePoint Server 2019

Andy King 61 Reputation points
2021-03-30T23:47:20.38+00:00

Hello,

I wanted to add one text paragraph which has five lines text HERE below the "search box" in the search page. See the screenshot below.

line 1 ..

line 2

line 3

line 4

line 5...

82964-search-page.jpg

Thanks,

Andy

Microsoft 365 and Office | SharePoint Server | For business
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

Answer accepted by question author
  1. Jerry Xu-MSFT 7,961 Reputation points
    2021-03-31T06:47:23.17+00:00

    Hi, anonymous userKingWeb-1472 ,

    It seems to be the classic search center page. You can directly edit page , add a script editor to hold HTML like below to display the fine line paragraph.

    <!DOCTYPE html>  
    <html>  
    <body>  
      
    <pre>  
       Line1  
      
       Line2  
      
       Line3  
         
       Line4  
    </pre>  
      
    </body>  
    </html>  
      
    

    Change content inside <pre></pre> to what you want. And edit web part to change zone index to 1 (if not working, set it to be a bigger number).

    83089-image.png


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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

1 additional answer

Sort by: Most helpful
  1. Andy King 61 Reputation points
    2021-04-12T18:30:03.867+00:00

    The script editor works fine. I can add the text now. Thanks so much, Jerry!!

    0 comments No comments

Your answer

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