Last active
August 29, 2015 14:15
-
-
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.
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
<?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