Title: Adding colours
Last modified: August 13, 2024

---

# Adding colours

 *  Resolved [hebhansen](https://wordpress.org/support/users/hebhansen/)
 * (@hebhansen)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/adding-colours/)
 * Hey
 * I found this code in your faq:
 *     ```wp-block-code
       add_filter( 'wpdn_colors', 'wpdn_add_purple' );function wpdn_add_purple( $colors ) {    $colors['purple'] = '#5236A0';    return $colors;}
       ```
   
 * In case I wish to add more than one colour, how do I do that? Do I add a colour
   line or repeat the entire code block?
 * I assume changing purple everywhere according to the color is ok?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * (@sormano)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/adding-colours/#post-17951988)
 * Hi,
 * It can be done like that, or you can duplicate the line starting with $colors.
 * Cheers,
   Jeroen

Viewing 1 replies (of 1 total)

The topic ‘Adding colours’ is closed to new replies.

 * ![](https://ps.w.org/wp-dashboard-notes/assets/icon-256x256.png?rev=1090348)
 * [WP Dashboard Notes](https://wordpress.org/plugins/wp-dashboard-notes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-dashboard-notes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-dashboard-notes/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-dashboard-notes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-dashboard-notes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-dashboard-notes/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Jeroen Sormani](https://wordpress.org/support/users/sormano/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/adding-colours/#post-17951988)
 * Status: resolved