Skip to content

Instantly share code, notes, and snippets.

@JiveDig
Last active December 17, 2015 04:19
Show Gist options
  • Save JiveDig/5549953 to your computer and use it in GitHub Desktop.
Save JiveDig/5549953 to your computer and use it in GitHub Desktop.
The beginning code for a child theme functions.php file
<?php
/**
* Functions
* @package The Stiz Media
* @author JiveDig <mike@thestizmedia.com>
* @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