Skip to content

Instantly share code, notes, and snippets.

@JuanRangel
Created May 16, 2015 03:36
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 JuanRangel/f0839fd6bda61489d059 to your computer and use it in GitHub Desktop.
Save JuanRangel/f0839fd6bda61489d059 to your computer and use it in GitHub Desktop.
Genesis setup file
// Priority 15 ensures it runs after Genesis itself has setup.
add_action( 'genesis_setup', 'theme_prefix_genesis_setup', 15 );
function theme_prefix_genesis_setup() {
//* Define Constants
//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', 'Shoreline' );
define( 'CHILD_THEME_URL', 'http://vsellis.com/themes/shoreline' );
define( 'CHILD_THEME_VERSION', '1.0' );
define( 'VSELLIS_LIB_DIR', CHILD_DIR . '/lib' );
define( 'VSELLIS_WIDGETS_DIR', VSELLIS_LIB_DIR . '/widgets' );
//* Add HTML5 markup structure
add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
add_theme_support( 'genesis-responsive-viewport' );
add_theme_support( 'genesis-style-selector', array (
'theme-blue' => __( 'Blue', 'shoreline' ),
'theme-purple' => __( 'Purple', 'shoreline' ),
'theme-red' => __( 'Red', 'shoreline' ),
'theme-green' => __( 'Green', 'shoreline' ),
'theme-dark' => __( 'Dark', 'shoreline' ),
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment