Skip to content

Instantly share code, notes, and snippets.

@DavidPeralvarez
Last active December 10, 2019 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidPeralvarez/cfbc900d2db8d47c578179f33f63a913 to your computer and use it in GitHub Desktop.
Save DavidPeralvarez/cfbc900d2db8d47c578179f33f63a913 to your computer and use it in GitHub Desktop.
Los filtros en Genesis
<?php
/**
* Child Theme customizations
*/
// Change comments title section
add_filter( 'genesis_title_comments', 'genesis_sample_title_comments' );
function genesis_sample_title_comments( $current_title ){
return sprintf( '<h3>%s</h3>', esc_html__( 'What do you think?', 'genesis -sample' ) );
// return '<h3>¿Qué opinas?</h3>';
}
// Delete date from post info
add_filter( 'genesis_post_info', 'genesis_sample_post_info' );
function genesis_sample_post_info( $current_post_info ){
return __( 'By', 'genesis-sample' ) . ' [post_author_posts_link] [post_comments] [post_edit]';
}
// Change search form text
add_filter( 'genesis_search_text', 'genesis_sample_search_text' );
function genesis_sample_search_text( $current_text ){
return __( 'What are you looking for?', 'genesis-sample' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment