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
// Add to functions file | |
add_action('wp_enqueue_scripts', 'child_javascript_files'); | |
function child_javascript_files() { | |
wp_register_script( 'fitvids', get_stylesheet_directory_uri() . '/js/jquery.fitvids.js', array('jquery'), '1.0', true ); | |
wp_register_script( 'loadfitvids', get_stylesheet_directory_uri() . '/js/load.fitvids.js', array('fitvids'), '1.0', true ); | |
wp_enqueue_script( 'fitvids' ); | |
wp_enqueue_script( 'loadfitvids' ); | |
} | |
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
/** Define Gravity Forms License Key */ | |
define("GF_LICENSE_KEY", "YOUR-LICENSE-KEY-HERE"); |
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
// Register Genesis Menus | |
add_theme_support( 'genesis-menus' , array ( 'primary' => 'Primary Navigation Menu' , 'secondary' => 'Secondary Navigation Menu' , 'mobile' => 'Mobile Navigation Menu' ) ); |
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
// Add Support for Structural Wraps | |
add_theme_support( 'genesis-structural-wraps', array( 'header', 'menu-mobile', 'menu-primary', 'menu-secondary', 'footer-widgets', 'footer' ) ); |
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
add_action( 'genesis_before_header', 'gst_do_mobilenav' ); | |
/** | |
* Create the Mobile Navigation Menu. | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
* | |
* Based on code from the StudioPress Genesis Framework 2.0 | |
*/ |
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
add_filter( 'genesis_attr_nav-mobile', 'gst_attributes_nav_mobile' ); | |
/** | |
* Add Attributes for Mobile Navigation Menu. | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
* | |
* Based on code from the StudioPress Genesis Framework 2.0 | |
*/ |
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
/** | |
* Register and Enqueue Mobile Navigation Menu script | |
* | |
* @author Brad Potter | |
* | |
* @link http://www.bradpotter.com | |
*/ | |
function gst_mobilemenu_script() { | |
wp_register_script( 'mobile-menu', get_stylesheet_directory_uri() . '/js/mobilemenu.js', array('jquery'), '1.0.0', false ); |
OlderNewer