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
<?php | |
//* Do NOT copy the opening PHP tage | |
//* Modify the comment respond title | |
add_filter( 'comment_form_defaults', 'ck_comment_form_title' ); | |
function ck_comment_form_title( $defaults ) { | |
$defaults[ 'title_reply' ] = __( 'Leave a Reply', CHILD_THEME_TEXT_DOMAIN ); | |
return $defaults; |
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
/* Progress Bar | |
--------------------------------------------- */ | |
.progress-bar { | |
position: fixed; | |
top: 0; | |
left: 0; | |
height: 5px; | |
width: 100%; | |
background: #f5f5f5; |
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
<?php | |
//* Do NOT copy the opening PHP tag | |
//* Add progress bar | |
add_action( 'genesis_before', 'ck_progress_bar_markup' ); | |
function ck_progress_bar_markup() { | |
echo '<div class="progress-bar"><div class="progress-bar-inner"></div></div>'; | |
} |
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
<?php | |
//* Do NOT include the opening PHP tag | |
//* Add end of content tracker | |
add_action( 'genesis_after_entry_content', 'ck_content_tracker' ); | |
function ck_content_tracker() { | |
echo '<div id="end-of-content"></div>'; | |
} |
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
<?php | |
//* Do NOT copy the opening PHP tag | |
//* Add Google Fonts to our header | |
add_action( 'wp_enqueue_scripts', 'ck_load_google_fonts' ); | |
function ck_load_google_fonts() { | |
wp_enqueue_style( 'ck-google-fonts', '//fonts.googleapis.com/css?family=Open+Sans', array(), CHILD_THEME_VERSION ); | |
} |
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
/* Primary Navigation - Colors | |
--------------------------------------------- */ | |
/* Yellow */ | |
.nav-primary .genesis-nav-menu .menu-item > a.yellow:hover:before, | |
.nav-primary .genesis-nav-menu .menu-item.yellow.current-menu-item > a:before { | |
border-left-color: #FFE066; | |
} | |
/* Green */ |
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
/* 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; |
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
/* 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 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 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; | |