Do you want to change the design of your SharePoint site easily? This is just a quick introduction how to customize a SharePoint 2013 Site (SP on premises or Office 365) with custom CSS. With custom branding you can completely change the design of a SharePoint site, like in this sample of a Contoso SPO site.
The steps to accomplish custom branding with CSS are:
- You need to be a site administrator (to activate the features and have full access to the site)
- The default site settings show not many options for Look and Feel.
My demo site starts with the URL https://[tenant].sharepoint.com/sites/design1 so the URL for the Site Settings is similar like here:
- So first open Site Collection Administration / Site collection features.
The page Site Settings : Site Collection Features follows, the URL goes like here:
- Active the SharePoint Server Publishing Infrastructure feature:
This usually can take some minutes... When this is done the feature looks like here:
- No go back to Site Settings and open Site Actions / Manage site features.
(Alternatively you can simply delete the ?Scope=Site parameter from the Site Collection feature URL)
- Now active the SharePoint Server Publishing feature in the Site:
After the activation the feature looks like here:
- When going back to the Site Settings the result is that the Look and Feel group includes more options.
- We are almost done. Now it´s possible to open the Master page settings.
In here the Master Page for this site can be selected.
The important part is the Alternate CSS URL below.
- When opening the Alternate CSS URL group you can specify your own customized CSS file.
- When clicking Browse you can upload your own CSS file and then select it (as shown above).
In this sample the path to the CSS file goes like /sites/design1/Style Library/mystyle.css
Now you can start designing the various elements in your SPO site with your own CSS file (f.e. mystyle.css). You can also upload this CSS file with SharePoint Designer directly.
The good news about this method is that you have no need to edit the masterpage (especially when working with Office 365 you are safe for coming updates...).