Skip to content

Instantly share code, notes, and snippets.

Avatar

Trung Hieu Bui Kaiderella

View GitHub Profile
@Kaiderella
Kaiderella / gist:96889a085f89da334f04
Created Dec 15, 2014
Xóa bỏ Genesis child info
View gist:96889a085f89da334f04
//* Remove the entry header
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 );
@Kaiderella
Kaiderella / gist:017b168f632f4e5537c1
Created Dec 15, 2014
Tùy biến Genesis post meta
View gist:017b168f632f4e5537c1
//* 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;
}
View gist:4029960d19d3372292bc
<link rel="stylesheet" href="css/dashicons.css">
View gist:d1851bdd986ea86ff00a
.myicon:before {
content: "\f155";
display: inline-block;
-webkit-font-smoothing: antialiased;
font: normal 20px/1 'dashicons';
vertical-align: top;
}
@Kaiderella
Kaiderella / gist:edc1aab2055c3b4aaa60
Created Dec 29, 2014
Tùy biến comments link trong Genesis
View gist:edc1aab2055c3b4aaa60
//* 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"]';
}
@Kaiderella
Kaiderella / gist:5809b535d118bd2fcfda
Created Dec 29, 2014
Tùy biến Comments title text:
View gist:5809b535d118bd2fcfda
//* 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;
}
@Kaiderella
Kaiderella / gist:c8e1d754b94018a83377
Created Dec 29, 2014
Tùy biến Trackbacks title text trong Genesis
View gist:c8e1d754b94018a83377
//* Tùy biến trackbacks title trong Genesis
add_filter( 'genesis_title_pings', 'sp_title_pings' );
function sp_title_pings() {
echo '<h3>Trackbacks</h3>';
}
@Kaiderella
Kaiderella / gist:c1da858dbbab0c04b03f
Created Dec 29, 2014
Tùy biến dòng chữ Speak Your Mind trong Genesis
View gist:c1da858dbbab0c04b03f
//* 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;
}
@Kaiderella
Kaiderella / gist:d6ee88b45dac38cbe3f7
Created Dec 29, 2014
Tùy biến author says text trong Genesis
View gist:d6ee88b45dac38cbe3f7
//* 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';
}
@Kaiderella
Kaiderella / gist:e058b9ebe6e2edf433ca
Created Dec 29, 2014
Tùy biến kích thước của Gravatar trong Genesis
View gist:e058b9ebe6e2edf433ca
//* 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;
}
You can’t perform that action at this time.