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 nút Submit trong Genesis | |
add_filter( 'comment_form_defaults', 'sp_comment_submit_button' ); | |
function sp_comment_submit_button( $defaults ) { | |
$defaults['label_submit'] = __( 'Đăng bình luận', 'custom' ); | |
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
//* Thêm nội quy vào khung bình luận trong Genesis | |
add_action( 'genesis_after_comments', 'sp_comment_policy' ); | |
function sp_comment_policy() { | |
if ( is_single() && !is_user_logged_in() && comments_open() ) { | |
?> | |
<div class="comment-policy-box"> | |
<p class="comment-policy"><small><strong>Nội quy bình luận:</strong>Viết nội quy bình luận của bạn vào đây.</small></p> | |
</div> | |
<?php | |
} |
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
//* Loại bỏ các thẻ HTML được cho phép bên trên khung bình luận trong Genesis | |
add_filter( 'comment_form_defaults', 'sp_remove_comment_form_allowed_tags' ); | |
function sp_remove_comment_form_allowed_tags( $defaults ) { | |
$defaults['comment_notes_after'] = ''; | |
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
.post_view:before { | |
content: "\f177"; | |
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 dòng chữ trong khung nhập dữ liệu tìm kiếm của Genesis | |
add_filter( 'genesis_search_text', 'sp_search_text' ); | |
function sp_search_text( $text ) { | |
return esc_attr( 'Tìm kiếm trên blog của tôi...' ); | |
} |
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 nút tìm kiếm trong Genesis | |
add_filter( 'genesis_search_button_text', 'sp_search_button_text' ); | |
function sp_search_button_text( $text ) { | |
return esc_attr( 'Tìm kiếm' ); | |
} |
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 nhãn của khung tìm kiếm trong Genesis | |
add_filter( 'genesis_search_form_label', 'sp_search_form_label' ); | |
function sp_search_form_label ( $text ) { | |
return esc_attr( 'Khung tìm kiếm' ); | |
} |
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
//* Kích hoạt Author Box cho trang lưu trữ | |
add_filter( 'get_the_author_genesis_author_box_archive', '__return_true' ); |