-
-
Save DavidPeralvarez/cfbc900d2db8d47c578179f33f63a913 to your computer and use it in GitHub Desktop.
Los filtros en Genesis
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
<?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