Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joedooley/504dba860d101d8e20ed to your computer and use it in GitHub Desktop.
Save joedooley/504dba860d101d8e20ed to your computer and use it in GitHub Desktop.
add_theme_support for custom header, custom background and an array of style options
<?php
//* Add support for custom header
add_theme_support( 'custom-header', array( 'width' => 250, 'height' => 70, 'header-selector' => '.site-title a', 'header-text' => false ) );
//* Add theme support for custom background
add_theme_support( 'custom-background' );
//* Add theme support for additional color style options
add_theme_support( 'genesis-style-selector', array(
'envy-pro-green' => __( 'Green With Envy Pro', CHILD_DOMAIN ),
'envy-pro-orange' => __( 'Orange With Envy Pro', CHILD_DOMAIN ),
'envy-pro-purple' => __( 'Purple With Envy Pro', CHILD_DOMAIN ),
'envy-pro-pink' => __( 'Pink With Envy Pro', CHILD_DOMAIN ),
'envy-pro-blue' => __( 'Blue With Envy Pro', CHILD_DOMAIN ),
) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment