Skip to content

Instantly share code, notes, and snippets.

@karenalenore
Last active July 5, 2016 18:06
Show Gist options
  • Select an option

  • Save karenalenore/f14d880765e0d3b66d377df1bc6be7e5 to your computer and use it in GitHub Desktop.

Select an option

Save karenalenore/f14d880765e0d3b66d377df1bc6be7e5 to your computer and use it in GitHub Desktop.
// Customize the return to top of page text
add_filter( 'genesis_footer_backtotop_text', 'opensky_footer_backtotop_text' );
function opensky_footer_backtotop_text($backtotop) {
$backtotop = get_bloginfo('description');
return $backtotop;
}
// Customize the post meta function
add_filter( 'genesis_post_meta', 'opensky_post_meta_filter' );
function opensky_post_meta_filter($post_meta) {
if ( !is_page() ) {
$post_meta = '[post_categories before="Category: "] [post_tags before="Tagged: "]';
return $post_meta;
}
}
// Remove the post meta function
remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
// Customize the post info function
add_filter( 'genesis_post_info', 'opensky_post_info_filter' );
function opensky_post_info_filter($post_info) {
$post_info = '[post_date] [post_edit]';
return $post_info;
}
// Modify the speak your mind text
add_filter( 'genesis_comment_form_args', 'opensky_comment_form_args' );
function opensky_comment_form_args($args) {
$args['title_reply'] = 'Leave a Comment';
return $args;
}
// Remove the entry title (requires HTML5 theme support)
add_action( 'genesis_before_header', 'opensky_remove_titles' );
function opensky_remove_titles() {
if (is_page()) {
remove_action( 'genesis_entry_header', 'genesis_do_post_title' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment