strip some default wp css variables
This commit is contained in:
parent
7e9640cdd6
commit
27943b0b4e
18
functions.php
Normal file
18
functions.php
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/* Remove default CSS variables that come with Wordpress
|
||||||
|
https://github.com/WordPress/gutenberg/issues/56180#issuecomment-1819222376
|
||||||
|
*/
|
||||||
|
function custom_wp_theme_json_default( $theme_json ) {
|
||||||
|
$new_data = array(
|
||||||
|
'version' => 2,
|
||||||
|
'settings' => array(
|
||||||
|
'color' => array(
|
||||||
|
'palette' => array(),
|
||||||
|
'gradient' => array(),
|
||||||
|
)
|
||||||
|
),
|
||||||
|
);
|
||||||
|
return $theme_json->update_with( $new_data );
|
||||||
|
}
|
||||||
|
add_filter( 'wp_theme_json_data_default', 'custom_wp_theme_json_default' );
|
Loading…
Reference in New Issue
Block a user