Last active
December 17, 2015 04:19
-
-
Save JiveDig/5549953 to your computer and use it in GitHub Desktop.
The beginning code for a child theme functions.php file
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 | |
/** | |
* Functions | |
* @package The Stiz Media | |
* @author JiveDig <[email protected]> | |
* @copyright Copyright (c) 2013, The Stiz | |
*/ | |
// Start the engine | |
require_once( get_template_directory() . '/lib/init.php' ); | |
// Definte child theme | |
define( 'CHILD_THEME_NAME', 'The Stiz Media' ); | |
define( 'CHILD_THEME_URL', 'http://thestizmedia.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"/>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment