Skip to content

Commit

Permalink
Disables custom colors
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverharrison committed Oct 25, 2022
1 parent d3af827 commit d7822f1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions inc/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,11 @@ function wds_acf_blocks_acf_json_load_point( $paths ) {
* @see https://developer.wordpress.org/reference/hooks/should_load_separate_core_block_assets/
*/
add_filter( 'should_load_separate_core_block_assets', '__return_true' );

/**
* Disable the custom color picker as we don't support the classes it adds.
*
* @author WebDevStudios
* @see https://developer.wordpress.org/block-editor/how-to-guides/themes/theme-support/#disabling-custom-colors-in-block-color-palettes
*/
add_theme_support( 'disable-custom-colors' );

0 comments on commit d7822f1

Please sign in to comment.