How to change the text color for Widget's title?

Lavanya34
Giga Contributor

Hi All,

Is there any possible to change the text color of the widget's title if there please help me with this requirement i need to change the text color from white to black.

find_real_file.png

 

Thanks & Regards,

Lavanya

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

You can clone the widget, if not already done so, and then in the CSS section, you'd want to put the class inside and change the color. For example...I cloned the "Simple List" Widget. Which on my portal looks like this:

find_real_file.png

I then went to widget editor:

find_real_file.png

Looked at the HTML and saw this:

find_real_file.png

So I then went to the CSS section and did this and saved:

find_real_file.png

Which now results in my title looking like this:

find_real_file.png

Please mark reply as Helpful/Correct. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

7 REPLIES 7

Sandeep132
Kilo Sage

Hi Lavanya,

 

Press Control and right click on the Highlited section. You can see option Widget in Editor. Now here you can see the CSS section and find the tags similar to this  box-shadow: 0px 0px 2px 5px #ffffff;
background-color: #ffffff; 

Here you can adjust the colors you require.

Thanks,

Hi Sandeep,

There is no box-shadow section in CSS, and i need to change color for many widgets so is there any other solution to this?

Thanks,

Lavanya

Hi Lavanya,

 

You can overwrite OOB panel heading class:

 

.panel-heading{
  1. background-color<color which you want>;
  2. color#4a4a4a;
  3. border-color#dee5e7;

Hi,

If you want to add it for all the panel header then you can create your own css and include it in the service portal theme.

 

find_real_file.png

 

find_real_file.png

 

find_real_file.png

 

find_real_file.png