Title: CSS gets overwritten
Last modified: August 7, 2024

---

# CSS gets overwritten

 *  [westmind](https://wordpress.org/support/users/westmind/)
 * (@westmind)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/css-gets-overwritten/)
 * Hi. We have a custom colour palette for charts and all works well however, each
   time a new plugin update is applied, our modifications get removed and we’re 
   back to default colours. Any advice please how to protect our custom CSS code
   please? Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Author [methnen](https://wordpress.org/support/users/methnen/)
 * (@methnen)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/css-gets-overwritten/#post-17939449)
 * Can I get a little extra info? Are you using Chart.js or Highcharts? How is the
   CSS being applied?
 * You should never make changes to a plugin itself. Changes should always be made
   via hooks or inside of your theme.
 * Happy to help direct you but need a bit more detail. 🙂

Viewing 1 replies (of 1 total)

The topic ‘CSS gets overwritten’ is closed to new replies.

 * ![](https://ps.w.org/m-chart/assets/icon.svg?rev=3592080)
 * [M Chart](https://wordpress.org/plugins/m-chart/)
 * [Support Threads](https://wordpress.org/support/plugin/m-chart/)
 * [Active Topics](https://wordpress.org/support/plugin/m-chart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/m-chart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/m-chart/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 1 reply
 * 2 participants
 * Last reply from: [methnen](https://wordpress.org/support/users/methnen/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/css-gets-overwritten/#post-17939449)
 * Status: not resolved