Created
October 18, 2014 12:41
-
-
Save vikky410/ddb51aa9f1681076b217 to your computer and use it in GitHub Desktop.
Wp: genesis functions.php
This file contains hidden or 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 | |
// Start the engine | |
require_once( get_template_directory() . '/lib/init.php' ); | |
// Child theme (do not remove) | |
define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' ); | |
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' ); | |
// Add Viewport meta tag for mobile browsers | |
add_action( 'genesis_meta', 'sample_viewport_meta_tag' ); | |
function sample_viewport_meta_tag() { | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>'; | |
} | |
// Add support for custom background | |
add_theme_support( 'custom-background' ); | |
// Add support for custom header | |
add_theme_support( 'genesis-custom-header', array( | |
'width' => 1152, | |
'height' => 120 | |
) ); | |
// Add support for 3-column footer widgets | |
add_theme_support( 'genesis-footer-widgets', 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment