Created
May 16, 2015 03:36
-
-
Save JuanRangel/f0839fd6bda61489d059 to your computer and use it in GitHub Desktop.
Genesis setup file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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