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
// Add span to part of the site title | |
add_action( 'genesis_site_title', 'thestiz_seo_site_title' ); | |
function thestiz_seo_site_title() { | |
echo '<p id="title"><a href="/">The Stiz <span>Media</span></a></p>'; | |
} |
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
// Previous/Next post title links to single posts | |
add_action ('genesis_entry_footer', 'post_navigation'); | |
function post_navigation() { | |
if ( is_singular(array('portfolio','post') ) ) { | |
echo '<div class="post-nav">'; | |
previous_post_link('<div class="previous">‹ %link</div>'); | |
next_post_link('<div class="next">%link ›</div>'); | |
echo '</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
// Replace site title with an inline logo | |
remove_action( 'genesis_site_title', 'genesis_seo_site_title' ); | |
add_action( 'genesis_site_title', 'child_do_logo' ); | |
function child_do_logo() { | |
$site_url = site_url(); | |
if( is_front_page() OR is_home() ) { | |
echo '<h1 class="site-logo" itemprop="logo"><a href="' . $site_url . '"><img src="/wp-content/images/logo.png"></a></h1>'; |
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
// Add phone number above nav, also add mobile menu | |
add_action( 'genesis_header_right', 'vp_call_us' ); | |
function vp_call_us() { | |
if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'mobile') || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'android')) { | |
echo '<div class="vp-call-us"><a href="tel:908-852-7028">Click to call! (908) 852-7028</a></div>'; | |
} else { | |
echo '<div class="vp-call-us">(908) 852-7028</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
// Customize the return to top of page text | |
add_filter( 'genesis_footer_backtotop_text', 'custom_footer_backtotop_text' ); | |
function custom_footer_backtotop_text($backtotop) { | |
$backtotop = '[footer_backtotop text="Back to Top"]'; | |
return $backtotop; | |
} |
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
// Remove/Add new post meta | |
remove_action( 'genesis_after_post_content', 'genesis_post_meta' ); | |
add_action( 'genesis_after_post_content', 'thestiz_portfolio_post_meta' ); | |
function thestiz_portfolio_post_meta() { | |
echo '<div class="post-meta">'; | |
echo '<p>' . get_the_term_list( $post->ID, 'portfolio_cat', 'Filed in: ', ' ', '' ) . '</p>'; | |
echo '<p>' . get_the_term_list( $post->ID, 'portfolio_tag', 'Tagged: ', ' ', '' ) . '</p>'; | |
echo '</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
//* Remove the entry meta in the entry header (requires HTML5 theme support) | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
//* Remove the entry footer markup (requires HTML5 theme support) | |
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 ); | |
remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 ); | |
//* Remove the entry meta in the entry footer (requires HTML5 theme support) | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); |
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 | |
// Customize search form input box text | |
add_filter( 'genesis_search_text', 'custom_search_text' ); | |
function custom_search_text($text) { | |
return esc_attr( 'Search my blog...' ); | |
} | |
// Customize search form input button text | |
add_filter( 'genesis_search_button_text', 'custom_search_button_text' ); |
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
/** | |
* Breaks the posts into 4 columns | |
* @link http://www.billerickson.net/code/grid-loop-using-post-class | |
*/ | |
add_filter( 'post_class', 'tsm_archive_post_class' ); | |
function tsm_archive_post_class( $classes ) { | |
global $wp_query; | |
// Keeps columns out of secondary loops ie: Genesis Featured Post widgets | |
if( ! $wp_query->is_main_query() ) { | |
return $classes; |