Skip to content

Instantly share code, notes, and snippets.

@cjkoepke
Last active August 29, 2015 14:15
Show Gist options
  • Save cjkoepke/b7fd7944bd3f90b6adfd to your computer and use it in GitHub Desktop.
Save cjkoepke/b7fd7944bd3f90b6adfd to your computer and use it in GitHub Desktop.
A basic setup of default Genesis child theme settings that are often used routinely.
<?php
//* Setup the Theme
//* =============================================================== */
//* Add the theme setup function below to the genesis_setup hook for better plugin compatability.
add_action( 'genesis_setup', 'cm_start_engine', 15 );
//* Define the theme settings and features in a function for use in the genesis_setup hook.
function cm_start_engine() {
//* Add HTML5 Support
add_theme_support( 'html5' );
//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );
//* Add support for structural wraps
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'site-inner',
'footer-widgets',
'footer'
) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment