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 the entry header | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); |
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
//* Customize the entry meta in the entry footer | |
add_filter( 'genesis_post_meta', 'post_meta_filter' ); | |
function post_meta_filter( $post_meta ) { | |
$post_meta = 'Posted on [post_date] by [post_author_posts_link] under [post_categories before=""] with tag [post_tags before=""][post_edit]'; | |
return $post_meta; | |
} |
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
<link rel="stylesheet" href="css/dashicons.css"> |
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
.myicon:before { | |
content: "\f155"; | |
display: inline-block; | |
-webkit-font-smoothing: antialiased; | |
font: normal 20px/1 'dashicons'; | |
vertical-align: top; | |
} |
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
//* Tùy biến comments link trong Genesis | |
add_filter( 'genesis_post_info', 'sp_post_info_filter' ); | |
function sp_post_info_filter( $post_info ) { | |
return '[post_comments zero="Để lại một bình luận" one="1 Bình luận" more="% Bình luận"]'; | |
} |
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
//* Tùy biến comments title text trong Genesis | |
add_filter( 'genesis_title_comments', 'sp_genesis_title_comments' ); | |
function sp_genesis_title_comments() { | |
$title = '<h3>Bình luận</h3>'; | |
return $title; | |
} |
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
//* Tùy biến trackbacks title trong Genesis | |
add_filter( 'genesis_title_pings', 'sp_title_pings' ); | |
function sp_title_pings() { | |
echo '<h3>Trackbacks</h3>'; | |
} |
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
//* Tùy biến dòng chữ Speak Your Mind trong Genesis | |
add_filter( 'comment_form_defaults', 'sp_comment_form_defaults' ); | |
function sp_comment_form_defaults( $defaults ) { | |
$defaults['title_reply'] = __( 'Để lại một bình luận' ); | |
return $defaults; | |
} |
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
//* Tùy biến author says text trong Genesis | |
add_filter( 'comment_author_says_text', 'sp_comment_author_says_text' ); | |
function sp_comment_author_says_text() { | |
return 'author says'; | |
} |
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
//* Tùy biến kích thước của Gravatar trong Genesis | |
add_filter( 'genesis_comment_list_args', 'sp_comments_gravatar' ); | |
function sp_comments_gravatar( $args ) { | |
$args['avatar_size'] = 96; | |
return $args; | |
} |
OlderNewer