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 - 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 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 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 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 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 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 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 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
/* Progress Bar | |
--------------------------------------------- */ | |
.progress-bar { | |
position: fixed; | |
top: 0; | |
left: 0; | |
height: 5px; | |
width: 100%; | |
background: #f5f5f5; |
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 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 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 | |
/* | |
Template Name: Login/Logout Page | |
*/ | |
//* Remove our default page content | |
remove_action( 'genesis_entry_content', 'genesis_do_post_content' ); | |
//* Add custom login form to our page content | |
add_action( 'genesis_entry_content', 'ck_do_login_form' ); |
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 | |
add_action( 'genesis_meta', 'producer_handle_titles' ); | |
function producer_handle_titles() { | |
//* Default entry header markup | |
add_action( 'genesis_after_header', 'producer_entry_header_markup_open', 5 ); /* Function below */ | |
add_action( 'genesis_after_header', 'genesis_do_post_title', 8 ); | |
add_action( 'genesis_after_header', 'producer_entry_header_markup_close', 15 ); |
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 | |
/* | |
* Example code of badly prefixed functions. | |
* | |
*/ | |
add_action( 'genesis_after_header', 'sp_third_navigation' ); | |
function sp_third_navigation() { | |
// Code |
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 | |
/* | |
* Example code of properly prefixing your functions | |
* Unique identifier: ck | |
* | |
*/ | |
add_action( 'genesis_after_header', 'ck_third_navigation' ); | |
function ck_third_navigation() { |