Reputation: 21
I've been trying many methods to apply custom CSS to our SharePoint Online site. However, no matter what I try, I am unsuccessful. These are the things I've tried:
<!--SPM:<SharePoint:CssRegistration Name="https://oursharepointsite.com/sites/new/SiteAssets/CSS/Custom.css?v=3" runat="server" After="corev15.css"/>-->
The only thing that works is inline styling which of course, is impractical. I've searched various forums and have not found a solution.
Upvotes: 2
Views: 1022
Reputation: 74
Are you using a completely classic site? If not, you need to look for the new way of customization.
None of the methods you describe work for the Modern experience. If you want to change the styling in any of the new Modern look, you will need to use the new Theme capability or implement something using SPFx Extensions.
You can find more about the new theming here: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-theming/sharepoint-site-theming-overview
This is a really nice tool to help you create a theme: https://developer.microsoft.com/en-us/fabric#/styles/themegenerator
This site should have everyhing else to get you started on Modern customization: https://spdesign.azurewebsites.net/
Upvotes: 2