biofriction-wp-theme/library/gutenberg.php

39 lines
1.2 KiB
PHP
Raw Normal View History

2021-02-18 15:27:46 +01:00
<?php
if ( ! function_exists( 'foundationpress_gutenberg_support' ) ) :
function foundationpress_gutenberg_support() {
// Add foundation color palette to the editor
// add_theme_support( 'editor-color-palette', array(
// array(
// 'name' => __( 'Primary Color', 'foundationpress' ),
// 'slug' => 'primary',
// 'color' => '#1779ba',
// ),
// array(
// 'name' => __( 'Secondary Color', 'foundationpress' ),
// 'slug' => 'secondary',
// 'color' => '#767676',
// ),
// array(
// 'name' => __( 'Success Color', 'foundationpress' ),
// 'slug' => 'success',
// 'color' => '#3adb76',
// ),
// array(
// 'name' => __( 'Warning color', 'foundationpress' ),
// 'slug' => 'warning',
// 'color' => '#ffae00',
// ),
// array(
// 'name' => __( 'Alert color', 'foundationpress' ),
// 'slug' => 'alert',
// 'color' => '#cc4b37',
// )
// ) );
}
add_action( 'after_setup_theme', 'foundationpress_gutenberg_support' );
endif;