|
@@ -34,6 +34,38 @@ function sophisticated_business_setup() {
|
|
'header-text' => array( 'site-title' ),
|
|
'header-text' => array( 'site-title' ),
|
|
)
|
|
)
|
|
);
|
|
);
|
|
|
|
+
|
|
|
|
+ // Editor color palette.
|
|
|
|
+ add_theme_support(
|
|
|
|
+ 'editor-color-palette',
|
|
|
|
+ array(
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'Primary', 'sophisticated-business' ),
|
|
|
|
+ 'slug' => 'primary',
|
|
|
|
+ 'color' => '#caab57', // $color__link
|
|
|
|
+ ),
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'Secondary', 'sophisticated-business' ),
|
|
|
|
+ 'slug' => 'secondary',
|
|
|
|
+ 'color' => '#b59439', // $color__border-link-hover
|
|
|
|
+ ),
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'Dark Gray', 'sophisticated-business' ),
|
|
|
|
+ 'slug' => 'dark-gray',
|
|
|
|
+ 'color' => '#1c1c1c', // $color__text-screen
|
|
|
|
+ ),
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'Light Gray', 'sophisticated-business' ),
|
|
|
|
+ 'slug' => 'light-gray',
|
|
|
|
+ 'color' => '#cccccc', // $color__text-light
|
|
|
|
+ ),
|
|
|
|
+ array(
|
|
|
|
+ 'name' => __( 'White', 'sophisticated-business' ),
|
|
|
|
+ 'slug' => 'white',
|
|
|
|
+ 'color' => '#ffffff',
|
|
|
|
+ ),
|
|
|
|
+ )
|
|
|
|
+ );
|
|
}
|
|
}
|
|
endif; // sophisticated_business_setup
|
|
endif; // sophisticated_business_setup
|
|
add_action( 'after_setup_theme', 'sophisticated_business_setup', 30 );
|
|
add_action( 'after_setup_theme', 'sophisticated_business_setup', 30 );
|