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 | |
//* Do NOT include the opening php tag | |
add_filter( 'body_class', 'ck_custom_body_classes' ); | |
function ck_custom_body_classes( $classes ) { | |
//* Create an empty value (or add a default to be applied everywhere) | |
$classes[] = ""; | |
if ( is_front_page() ) { |
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 | |
//* Do NOT include the opening php tag | |
//* Load Google Fonts | |
add_action( 'wp_enqueue_scripts', 'ck_load_google_fonts' ); | |
function ck_load_google_fonts() { | |
wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Lato:400,700|Neuton:400', array(), CHILD_THEME_VERSION ); | |
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 | |
//* Do NOT include the opening PHP tag | |
$args = array( | |
'search-form', | |
'comment-form', | |
'comment-list', | |
'gallery', | |
'caption' | |
) |
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 | |
//* Do NOT include the opening PHP tag | |
//* Add viewport meta tag for mobile browsers | |
add_theme_support( 'genesis-responsive-viewport' ); | |
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 | |
//* Do NOT include the opening PHP tag | |
$args = array( | |
'header', | |
'nav', | |
'subnav', | |
'footer-widgets', | |
'footer', | |
'site-inner' |
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 | |
//* Do NOT copy the opening PHP tag | |
add_filter( 'nav_menu_link_attributes', 'ck_attributes_nav_link', 10, 3 ); | |
function ck_attributes_nav_link( $atts, $item, $args ) { | |
if ( ! $args->menu->name == "Primary Navigation" ) | |
return; | |
$menu = wp_get_nav_menu_items( 'Primary Navigation' ); |
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 | |
//* Do NOT copy the opening PHP tag | |
//* Set menu depth to one level | |
add_filter( 'wp_nav_menu_args', 'ck_limit_nav_depth' ); | |
function ck_limit_nav_depth( $args ) { | |
if( $args['theme_location'] == 'primary' ) | |
$args['depth'] = 1; | |
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
/* Primary Navigation | |
--------------------------------------------- */ | |
.nav-primary { | |
background-color: #242831; | |
height: 100%; | |
left: 0; | |
position: fixed; /* Make our navigation stick to the left of the viewport at all times */ | |
top: 0; | |
width: 80px; |
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
/* Container | |
--------------------------------------------- */ | |
.site-container { | |
margin-left: 80px; /* Compensate for 80px side nav */ | |
} | |
.site-inner, | |
.wrap { | |
max-width: 1120px; /* Compensate for 80px side nav */ |
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
/* Primary Navigation - Animated | |
--------------------------------------------- */ | |
.nav-primary .genesis-nav-menu a, | |
.nav-primary .genesis-nav-menu a:before, | |
.nav-primary .genesis-nav-menu .menu-item { | |
-webkit-transition: all .10s ease-in-out; | |
-moz-transition: all .10s ease-in-out; | |
-ms-transition: all .10s ease-in-out; | |
-o-transition: all .10s ease-in-out; |