Skip to main content
Share Your Experience: Take the 2024 Developer Survey
9 votes
Accepted

Modern Site Page - Hiding total page Views and Like option in Office 365 SP Online

In my experience, it shows the total number of page views since page creation. Though, the method to calculate page views is not known to me, so it could be different. Its not stored in any hidden ...
Gautam Sheth's user avatar
  • 30.9k
7 votes
Accepted

Create folders in site pages - Possible?

It is possible but you have to enable folders in advanced settings in the library settings. Go to library in question > Library Settings > Advanced settings > Set 'Make "New Folder" command ...
Johan Brännmar's user avatar
7 votes
Accepted

Adding CSS Reference on Site Page

Unfortunately, in Modern Experience, you can't customize the page to add JS or custom CSS! Supported customizations for Modern Experience Page Custom branding like custom themes Note: Custom ...
Mohamed El-Qassas MVP's user avatar
6 votes
Accepted

Run JavaScript after page loads

Many things happen on page after $(document).ready(). SharePoint 2013 does provide a few options to execute JavaScript function after page loads. Script on Demand (load a .js file then execute you ...
Ganesh Sanap - MVP's user avatar
5 votes

Cant get html file to open in sharepoint

First upload the HTML to SharePoint into a document library: Open Site Contents Select Add an app Select Document Library Name the library Click Create Open the library in a web browser e.g. https://...
Underverse's user avatar
5 votes

How to hide Author name and Site page name from the modern site page in SPOnline team site

not sure if I have understood your problem correctly, but for the 'Author Name', you can chose to remove it, in which case it would be blank and will not be shown in the published version. As per the ...
UBK's user avatar
  • 1,213
4 votes

Is there a way to show recommend Documents for the current logged-in user

SharePoint recommendations on modern pages help you and your users discover pages and news in your organization. You may refer to the following link: SharePoint Recommendations
RaytheonXie-MSFT's user avatar
3 votes

Cant get html file to open in sharepoint

Another option is to store the HTML files in a document library renamed to .aspx so SharePoint serves the content to open in the web browser natively as HTML. First upload the HTML to SharePoint into ...
Underverse's user avatar
3 votes

Cant get html file to open in sharepoint

If it is static html page you can add it to any document library and change the Farm level property called Browser File Handling to Permissive in SharePoint Central Administration. Then it will open ...
Semushin Dmitrii's user avatar
3 votes

Create folders in site pages - Possible?

The idea behind a publishing site is that you create subsites for sections or areas of your site. For example About Us, Products, Services, News. Since each sub site will have its own Pages library, ...
Heather Solomon's user avatar
3 votes
Accepted

How to hide Author name and Site page name from the modern site page in SPOnline team site

I tested the method mentioned by UBK, which meets your needs. Before: Remove profile and Page title: After:
Binggo_ MSFT's user avatar
3 votes
Accepted

Page Library - new column with required field, how to prevent page creation if required field not filled

This is by design in SharePoint Online Modern experience. The list items/library files with incomplete/missing information will be shown in separate view called Items/Files that need attention like ...
Ganesh Sanap - MVP's user avatar
3 votes
Accepted

Hiding Office 365 Ribbon in SharePoint

Custom master pages are currently not supported for "modern" pages. You can find supported/unsupported customizations in below documentations: Customizing "modern" site pages ...
Ganesh Sanap - MVP's user avatar
3 votes
Accepted

Are the section titles customizable

Unfortunately, there are no SharePoint default settings available to customize the collapsible section titles. So, you cannot change the font size, font family or font color of the section display ...
Ganesh Sanap - MVP's user avatar
2 votes
Accepted

Increasing the 'Drop Here' area when 'dragging and dropping' Documents in a LVWP

Add Script Editor on your page that has your Document Library Add this CSS style <style> #ms-dnd-dropbox { height: 500px ! important; } </style> Increase the height based on your ...
Mohamed El-Qassas MVP's user avatar
2 votes

Which to choose: site pages vs wiki page library

We use Site Pages as it allows for more customization. If you want webzones, webparts, javaScript, etc... then this is the way to go. If all you want is free text with HTML markup then go with Wiki ...
Brian Rood's user avatar
2 votes
Accepted

Creating a new page in Site Pages with Workflow and Content Type

I had your exact same problem but then I remembered encountering something similar when I first used WFs to generate Word files. So that link is right, but it's not very clear. If you've ever tried ...
peanut's user avatar
  • 36
2 votes

How to add metadata to a Modern Page?

This doesnt seem to be possible yet via the UI. However, based on this Customize "modern" site pages link, I was able to add metadata using CSOM C#. You can also modify the same code for PowerShell. ...
Gautam Sheth's user avatar
  • 30.9k
2 votes

Cant get html file to open in sharepoint

A different solution that worked for me was adding the parameter "web=1" to the end of the URL If the file url is .../SitePages/test%20rapport.html, you can access the html file in browser ...
Shubham Periwal's user avatar
2 votes

Adding CSS Reference on Site Page

We can add JS & CSS to modern pages only through SharePoint Framework. You can develop an SPFx extension to add your custom CSS definitions to the page. I believe this is still in Developer ...
Ram's user avatar
  • 723
2 votes
Accepted

how i can un-post my modern page from being set as News inside our site

You need to use DemoteNewsArticle method the PnPClientSidePage to un-publish it as news article. Use the PnP commands as mentioned below: Connect-PnPOnline -Url "https://tenant.sharepoint.com/sites/...
Gautam Sheth's user avatar
  • 30.9k
2 votes
Accepted

Delete Site Pages and Pages Library from Site Content

yes, it will create a major problem, since the url of your site defaults on the Home page (called home.aspx or default.aspx) included in Site Pages.
susan's user avatar
  • 2,678
2 votes

Modern Site Page - Hiding total page Views and Like option in Office 365 SP Online

Using PnP both Set-PnPTenant -SocialBarOnSitePagesDisabled $false and Set-PnPSite -SocialBarOnSitePagesDisabled $false works.
Leif's user avatar
  • 141
2 votes
Accepted

Installing a Remote Event Receiver on "Site Pages" library using BaseTemplate ID

Try this( the error caused by Equal in Linq based on my testing). Guid g = new Guid("00bfea71-c796-4402-9f2f-0eb9a6e71b18"); context.Load(context.Web.Lists, lists => lists.Include(...
Lee's user avatar
  • 4,271
2 votes
Accepted

SharePoint Online - People picker not showing suggestions

You can use Angular.js and jQuery with REST call to auto complete people picker column. More information, you can refer to: Auto-Complete People Picker In SharePoint Using Angular And jQuery Another ...
Kally_MSFT's user avatar
  • 3,034
2 votes

Menu "new" edit not possible, click does not lead to any action (type: page library)

@willman & @sharepointnewbie: The Site pages library in modern (and classic) sites is a special library in SharePoint. It is not meant to be treated like other document libraries. As such, you ...
A.k.A. Fritz's user avatar
  • 1,425
2 votes

Get content of news posts using REST api

You can call the rest with this end point: https://xxx.sharepoint.com/sites/xxx/_api/web/lists/getbytitle('Site Pages')/items This will provide you with results of all information.
karthick 22's user avatar
2 votes

How can I move a Site Page to a sub-folder?

Amending this path “/_layouts/15/sitemanager.aspx” at the end site collection URL. Then you can move site pages:
Lisa Chen MSFT's user avatar
2 votes
Accepted

Open a SharePoint classic experience in FullScreen Mode

You can append ?IsDlg=1 to calendar URL like: https://tenant.sharepoint.com/sites/siteName/Lists/Events/calendar.aspx?IsDlg=1 Output:
Ganesh Sanap - MVP's user avatar
2 votes
Accepted

Is there way to add video clips to SharePoint Online news post

Below are the options to add videos to your SharePoint modern pages: File viewer web part: Upload your video to SharePoint document library & select the video file in file viewer web part ...
Ganesh Sanap - MVP's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible