Last active
March 9, 2016 02:42
-
-
Save srikat/af272c23a92ff88e0506 to your computer and use it in GitHub Desktop.
Threaded Comment Numbering in Genesis. https://sridharkatakam.com/threaded-comment-numbering-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
// Change 'genesis_html5_comment_callback' to 'gtcn_basic_callback' provided by Greg's Threaded Comment Numbering plugin for numbering commnets | |
add_filter( 'genesis_comment_list_args', 'sk_add_numbered_comments' ); | |
function sk_add_numbered_comments( $defaults ) { | |
if ( function_exists( 'gtcn_basic_callback' ) ) { | |
$defaults['callback'] = genesis_html5() ? 'gtcn_basic_callback' : 'genesis_comment_callback'; | |
} | |
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
.commentnumber { | |
float: right; | |
font-size: 12px; | |
background: #ddd; | |
padding: 5px 10px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment