question

AndyKingWeb-1472 avatar image
0 Votes"
AndyKingWeb-1472 asked AndyKingWeb-1472 answered

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

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


office-sharepoint-server-administrationoffice-sharepoint-server-developmentoffice-sharepoint-server-customization
search-page.jpg (112.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JerryXu-MSFT avatar image
0 Votes"
JerryXu-MSFT answered JerryXu-MSFT edited

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.


image.png (52.0 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndyKingWeb-1472 avatar image
0 Votes"
AndyKingWeb-1472 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.