Support

Home Forums Event Espresso Premium Color Codes for Events in EE4

Color Codes for Events in EE4

Posted: December 13, 2017 at 7:39 am

Viewing 1 reply thread


AerieLane

December 13, 2017 at 7:39 am

In an earlier version I was able to choose a custom color for each event category using a hex code so I could choose the correct brand color. Now when I go to the color picker for the event color codes it only gives a box to choose a color and no box to input the color code so I can be sure the color is exactly what I want. How do we enter a custom color now?


Josh

  • Support Staff

December 13, 2017 at 1:24 pm

Hello AerieLane,

I remember that worked earlier too, and I looked into this and it appears that there were some changes added to the WordPress Colorpicker. There will be some updates to the Calendar add-on to make it fit in with those changes. In the meantime, you can add the following code to your website to restore those hex code input boxes:

function ee_cal_cat_color_picker_shim() {
    $custom_css = 
    "#category-background-color-for-calendar,
    #category-text-color-for-calendar {
        display: inline-block !important;
    }";
    wp_add_inline_style( 'ee-cat-admin', $custom_css );
}
add_action( 'admin_enqueue_scripts', 'ee_cal_cat_color_picker_shim', 11 );

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.

Viewing 1 reply thread

The support post ‘Color Codes for Events in EE4’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso