4

I have been struggling for 2 days trying to remove the office 365 logo and the SharePoint branding text from the ribbon.

I have tried a lot of tutorials but nothing working.

NOTE: I am a complete beginner to SharePoint designer.I seen a lot of CSS as answers on forums but I don't know what to do with them. Also when trying to check in an updated master page i received the following error: enter image description here

4

Ok so in order to start branding SharePoint (Office 365) you need 3 things:

  • A CSS file
  • A place to store the CSS file
  • Register/associate the CSS file with the site / master page

The CSS file

You can use this simple styles.css proof-of-concept to tell you it is working.

body
{
    background-color:red;
}

Storage

There are many options but it is often suggested to keep your branding resources in the "Style Library". enter image description here

Association

There are many flavors.

If possible, I would suggest AlternateCSSUrl property, which is the one you set when you go to Site Settings > Master Page.

enter image description here

If your version/plan does not support this, you may need to add the call to the master page, under the head section,

<SharePoint:CssRegistration Name="&lt;% $SPUrl:~sitecollection/style library/styles.css %&gt;" runat="server" After="SharepointCssFile" />

If you managed to get a red(ish) background, you should now be capable of using your browser's "inspect" feature to check the html and what styles you need to override (i.e. include in your css so that they customize the page's elements on top of the current styles).

e.g.

.o365cs-base .o365cs-navMenuButton {
    display: none !important;
}
.o365cs-nav-header16 .o365cs-nav-brandingText{
    display: none !important;
}
/*hide the whole left nav*/
.o365cs-nav-header16 .o365cs-nav-leftAlign
{
    display:none !important;
}

You may notice some areas are not branded. These are likely lists in modern experience mode and simply cannot be branded. More here.

Update:

You should not edit seattle.master directly. You should create a file on your local computer. Call it CustomMaster.master, copy the contents form seattle.master into it, with the CSS call there. Upload it and apply it by right-clicking and setting as custom and default master page.

  • just to add in Tiago's answer: @keshav as you are total beginner. To apply Alternative CSS you need to activate Publishing Feature on the particular site you are working on – cjs Aug 29 '17 at 17:56
  • @Tiago Duarte i followed the first two steps and i didnt had the option to use alternate css,so i injected the code in seattle.master and publish a major version. NOTE : sharepoint designer keep telling the file has been moved or deleted,,in short couldnt get the red background. – Keshav Taurah Aug 29 '17 at 18:21
  • @Tiajo Duarte Could you show me how to add the code to the master page,i think this is what i have been doing wrongly since the beginnig – Keshav Taurah Aug 29 '17 at 18:27
  • @Tiajo Duarte i found out that i am not able to reference the css files from the master page because i cannot check in the latter,see picture of error in question above – Keshav Taurah Aug 29 '17 at 19:02
  • 1
    @Tiago Duarte Thanks it worked,needed to wait a bit. – Keshav Taurah Aug 30 '17 at 10:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.