How to change the text color in the header.

Babji Sadhu
Tera Contributor

Hi,

 

Is it possible to Change the header text color to some other color in the portal. Let me know the best possible way to change the text color. Please do find the attachment given below.

 

Thanks & Regards

2 ACCEPTED SOLUTIONS

Rob Sestito
Mega Sage

Hello @Babji Sadhu - 

 

You can accomplish this by going to Service Portal Configurations --> Select Branding Editor --> Select the Theme Colors tab:

RobSestito_3-1686160580504.png

And you can choose from the Navbar background, Brand, and Text (scroll down)

RobSestito_4-1686160721189.png

 

Hope this helps!

Cheers,

-Rob

*Don't forget to mark replies as Helpful and/ or Correct when appropriate*

View solution in original post

Community Alums
Not applicable

Hello @Babji Sadhu ,

 

You can configure branding as suggested by @Rob Sestito .

OR Go to portals --> then select your portal and add these CSS_Variables directly:

Khushbookabra_0-1686395197489.png

 

By adding the first line of code, it changes the font colour for the mega menu and the font colour for the global header together.

 

And if you want to make the font colour for the mega menu and the font colour for the global header a different colour, then add a second line of code too.

 

Result:

 

Khushbookabra_1-1686395197488.png

 

@Babji Sadhu , Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.

 

Thank you!

View solution in original post

5 REPLIES 5

Rob Sestito
Mega Sage

Hello @Babji Sadhu - 

 

You can accomplish this by going to Service Portal Configurations --> Select Branding Editor --> Select the Theme Colors tab:

RobSestito_3-1686160580504.png

And you can choose from the Navbar background, Brand, and Text (scroll down)

RobSestito_4-1686160721189.png

 

Hope this helps!

Cheers,

-Rob

*Don't forget to mark replies as Helpful and/ or Correct when appropriate*

Community Alums
Not applicable

Hello @Babji Sadhu ,

 

You can configure branding as suggested by @Rob Sestito .

OR Go to portals --> then select your portal and add these CSS_Variables directly:

Khushbookabra_0-1686395197489.png

 

By adding the first line of code, it changes the font colour for the mega menu and the font colour for the global header together.

 

And if you want to make the font colour for the mega menu and the font colour for the global header a different colour, then add a second line of code too.

 

Result:

 

Khushbookabra_1-1686395197488.png

 

@Babji Sadhu , Please mark my answer as "Accept as Solution" and "Helpfuls." If it works for you.

 

Thank you!

Hi @Community Alums - How to make the font color of the dropdown options for profile same as the global header text.

 

by using your code I've applied the font color of megamenu to black and global header font color to white, but the profile dropdowns which are on the Global header is taking same as the color of megamenu and they are not visible.

Janusree_0-1694090524356.png

 

Community Alums
Not applicable

Hello @Janu sree ,

 

If you add CSS like this:

.navbar-inverse .navbar-nav > li > a{
color: orange;
};
$navbar-inverse-link-hover-color:orange;
$navbar-inverse-link-color:white;

 

Because it all using the same property as what you are experiencing. You could override parts of it with CSS, though. Under the theme, create a new CSS file, for example, specific to your company, and add the CSS there.

 

Please refer to this also: https://www.servicenow.com/community/developer-forum/css-on-employee-center-portal/m-p/1567094

 

Thank you!