Begins support for Gutenberg. Ref. #10.
This commit is contained in:
parent
98728a245e
commit
47fc9a8424
|
@ -247,6 +247,67 @@ function tainacan_theme_collection_query( $query ) {
|
|||
}
|
||||
add_action( 'pre_get_posts', 'tainacan_theme_collection_query' );
|
||||
|
||||
/**
|
||||
* Gutenberg support
|
||||
*/
|
||||
function tainacan_setup_theme_supported_features() {
|
||||
add_theme_support( 'editor-color-palette', array(
|
||||
array(
|
||||
'name' => __( 'Default', 'tainacan-interface' ),
|
||||
'slug' => 'default',
|
||||
'color' => '#298596',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Carmine', 'tainacan-interface' ),
|
||||
'slug' => 'carmine',
|
||||
'color' => '#8c442c',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Cherry', 'tainacan-interface' ),
|
||||
'slug' => 'cherry',
|
||||
'color' => '#A12B42',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Mustard', 'tainacan-interface' ),
|
||||
'slug' => 'mustard',
|
||||
'color' => '#754E24',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Mint Green', 'tainacan-interface' ),
|
||||
'slug' => 'mintgreen',
|
||||
'color' => '#255F56',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Dark Turquoise', 'tainacan-interface' ),
|
||||
'slug' => 'darkturquoise',
|
||||
'color' => '#205E6F',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Turquoise', 'tainacan-interface' ),
|
||||
'slug' => 'turquoise',
|
||||
'color' => '#185F6D',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Blue Heavenly', 'tainacan-interface' ),
|
||||
'slug' => 'blueheavenly',
|
||||
'color' => '#1D5C86',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Purple', 'tainacan-interface' ),
|
||||
'slug' => 'purple',
|
||||
'color' => '#4751a3',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Violet', 'tainacan-interface' ),
|
||||
'slug' => 'violet',
|
||||
'color' => '#955ba5',
|
||||
),
|
||||
) );
|
||||
}
|
||||
|
||||
add_action( 'after_setup_theme', 'tainacan_setup_theme_supported_features' );
|
||||
|
||||
|
||||
require get_template_directory() . '/functions/customizer.php';
|
||||
require get_template_directory() . '/functions/single-functions.php';
|
||||
require get_template_directory() . '/functions/class-tainacanthemecollectioncolor.php';
|
||||
|
|
Loading…
Reference in New Issue