Nov 22 2016 05:41 AM
We are using Sharepoint Online and wish to apply our own CSS in the Site Pages and Wiki Pages. We understand that changes to the Master page is not recommended!
We have tried to modify Site Pages and Wiki Pages directly, but then we get a message in the page "The current page has been customized from its template. Revert to template." which is visible to all users
What is the template that is mentioned?
How to correctly apply our own styling/CSS to the pages?
Thank you in advance for any ideas :)
John
Nov 22 2016 10:35 AM
Nov 22 2016 02:00 PM
SolutionMay 09 2019 06:51 PM
try this in powershell
Get-SPOSite <SiteURL>|select DenyAddAndCustomizePages
- to see if its enabled. if enabled, run this:
Set-SPOSite <SiteURL> -DenyAddAndCustomizePages 0
May 10 2019 06:40 AM
Agree with @Juan Carlos González Martín here.
The "Template" is referring to a page layout (basically a definition of what a page should look like). However, as Juan mentions, you should keep your customization loosely coupled to the pages, and inject references to your CSS into the page through JavaScript. This can be done via User Custom Actions.
May 13 2019 10:06 PM
if you want to remove the message from modern sites use the powershell I provided. This was given to me from MS support and it works.
Nov 22 2016 02:00 PM
Solution