2

Is there a way to change the colour of the Upper horizontal tool bar from the default blue colour to a custom color? Thanks

7

You can try with this style in either your master page or a css file:

div#suiteBarLeft{
background-color: red;
}

In this example, the top blue color will be changed to red, you can change it to any color you want.

0

yes you can, add this css to change:

create a css file called customstyles.css and add the following:

.s4-ribbonrow
{
   color:purple!important;
}

i would like to note that you need important to persist the changes(overwrite) default settings otherwise it wouldnt change

now add this to the masterpage:

<SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/Custom/customstyles.css %>" After="corev4.css" runat="server"/>

add the css file to the Style Library located here:

enter image description here

site actions -> View all site content -> under 'document library' select Style Library -> create a new folder called 'Custom' -> go into the new folder and import the css file

now refresh page! you will need to update the style library for every change to css obviuosly! or you can add it to _Layouts folder in 12/14/15 hive instead and its easier to ammend ;)

and the result is:

enter image description here

use ie F12 developer to find out the css class/id name and add it to the css file to brand/style ;)

for 2013

div #suiteBarLeft
{
   color:purple!important;
}
  • Thanks a lot for your help, using Sharepoint 2013 , i have to use div#suiteBarLeft instead of .s4-ribbonrow. thnaks – john Gu Aug 30 '13 at 14:42
  • @ali: Why are you using !important? – iOnline247 Aug 30 '13 at 18:48
  • @iOnline247 sometimes the default CSS doesn't override until you write !important – Arsalan Adam Khatri Aug 30 '13 at 18:52
  • @Arsalan: That's not an accurate statement. Your CSS selector has to be the same or more specific. !important is very rarely ever needed. – iOnline247 Aug 30 '13 at 18:58
  • 1
    @iOnline247 in this case its required usually when overriding css especially from core.css as these css also have important, if its set as important within core.css than doesn't matter what you do in your custom css it wouldn't persist! hence why I added it in! Important just enforces that you want it to overwrite any other css! you are right in most cases its not needed but within styling and branding I find that I use it more than often! – Ali Jafer Aug 31 '13 at 0:35

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.