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
<? | |
// Post Shortcodes | |
[post_date] | |
[post_time] | |
[post_author] | |
[post_author_link] | |
[post_author_posts_link] | |
[post_comments] | |
[post_tags] | |
[post_categories] |
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
// Change Footer Creds Text | |
add_filter( 'genesis_footer_creds_text', 'wk_footer_text' ); | |
function wk_footer_text() { | |
return '[footer_copyright] <a href="http://www.zell-weekeat.com">Zell Liew</a>'; | |
// return 'Copyright [footer_copyright] [footer_childtheme_link] · [footer_genesis_link] [footer_studiopress_link] · [footer_wordpress_link] · [footer_loginout]'; | |
} |
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
// Change back to top text | |
add_filter( 'genesis_footer_backtotop_text', 'zell_footer_backtotop_text' ); | |
function zell_footer_backtotop_text($backtotop) { | |
$backtotop = '[footer_backtotop text="Return to Top"]'; | |
return $backtotop; | |
} |
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
// Enqueue stylesheets | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
add_action( 'wp_enqueue_scripts', 'zell_load_stylesheets' ); | |
function zell_load_stylesheets() { | |
if( !is_admin() ) { | |
// Main theme stylesheet | |
wp_enqueue_style( 'zell', get_stylesheet_directory_uri() . '/css/style.css', array(), null ); |
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
/** | |
* Load scripts | |
* | |
* Only load these scripts on the front-end. | |
* | |
* @since 2.0.0 | |
*/ | |
add_action( 'wp_enqueue_scripts', 'zell_scripts' ); |
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_pre_load_favicon', 'zell_load_favicon'); | |
function zell_load_favicons() { | |
$favicon_path = get_stylesheet_directory_uri(). | |
'/images/favicons'; | |
// Use a 144px X 144px PNG for the latest iOS devices | |
echo '<link rel="apple-touch-icon" href="'.$favicon_path. | |
'/favicon-144.png">'; |
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
// reposition navigation | |
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
add_action( 'genesis_header', 'genesis_do_nav' ); | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); | |
add_action( 'genesis_sidebar_alt', 'genesis_do_subnav' ); |
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
// remove structural wraps for nav and subnav | |
add_theme_support( 'genesis-structural-wraps', array( | |
'header', | |
'site-inner', | |
'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 signup incentives after every post | |
add_action( 'genesis_before_comments', 'zell_post_subscribe_box' ); | |
function zell_post_subscribe_box() { | |
if ( is_single() ) { | |
echo '<div class="feature-box">'; | |
echo do_shortcode( '[contact-form-7 id="341" title="Mail Chimp Signup"]' ); | |
// echo do_shortcode( '[contact-form-7 id="1175" title="Mail Chimp Signup Form WK DRAFT"]' ); | |
echo '</div><!-- end .feature-box -->'; |
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
remove_action( 'genesis_after_header', 'genesis_do_nav' ); | |
remove_action( 'genesis_after_header', 'genesis_do_subnav' ); |
OlderNewer