how to retain style in a cloned widgets servicenow

sanjeev20
Tera Contributor

I have cloned a widget sc category page widget and replaced the OOB widget without making any other changes on sc_category page. However I can see the styles of the cloned widget are missing and it shows the data in different font and colour. Can anyone help us to understand what we are missing here and how to fix it.

9 REPLIES 9

Hello @lawrencemgann ,

 

Have you incorporated the page into any new portal? Each portal might have its own unique font and theme.

 

Thanks,

Alka Chaudhary

 

 

I'm facing the same issue? Did you find any fix for this please let me know thanks.

Yes! There are additional CSS styles applied to widgets by the service portal CSS sheets.

 

Go to Service Portal > CSS and filter for the widget/page then add the cloned widget to the relevant sheets.

I'm having the same issue, could you please provide a more detailed step by step instruction on how to solve this?

Thank you for this tip!
I added my cloned widget just below the original widget in the CSS style sheet and it fixed the problem for me. All I needed to do was to update the widget sys ID (needs to start with the 'v' letter). 

LidiaAndriancz_1-1749735176202.png