How to change the background color of navigation bar?

LinhN
Tera Contributor

Hi there, 

I want to change the background color of the navigation bar. Does anyone here know how to do this? Please help me find a solution 

LinhN_0-1731654968882.png

LinhN_1-1731655000888.png

 

 

1 ACCEPTED SOLUTION

Ashish Parab
Mega Sage

Hey @LinhN ,

 

Please create a UI script as below:

(function() {
    addAfterPageLoadedEvent(function() {

        var backgroundColor = '#FFFF00'; // give value of your color
        $$('.navbar').each(function(elmt) {
            elmt.style.backgroundColor = backgroundColor;
        });

    });
})();

 

Output-

ashish_parab_0-1731678112639.png

 

Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.

 

Thanks and Regards,

Ashish

 

View solution in original post

6 REPLIES 6

Rohit99
Mega Sage

Hi @LinhN,

Here’s a link you might find helpful—please take a look : How to Change the Header's Background Color in New ServiceNow UI 


Please mark my response as correct and helpful if it helped solved your question.

 

Thanks,

Rohit Suryawanshi




Satoshi Abe
Mega Sage

@LinhN 

I think you'd like to change Core UI. Please see the following document.

https://www.servicenow.com/docs/bundle/xanadu-platform-user-interface/page/administer/navigation-and...

1.Navigate to All > System Properties > Basic Configuration UI16.
2.Complete the configuration by changing any of the following settings:(see above URL)

LinhN
Tera Contributor

Hi, I have tried this way but it is changing the color of the top banner page.  I mean I want to change the color of the navigation bar from Grey to another color. Could you help me how can I modify this?

navigation bar.png

SN_Learn
Kilo Patron
Kilo Patron

Hi @LinhN ,

 

Please try the below:

 

{
  "base": {
    "--now-color_surface--neutral-3": "0, 255, 255"
  }
}

 

Results:

 

SN_Learn_0-1731669306299.png

SN_Learn_1-1731669360008.png

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.