Skip to content

Instantly share code, notes, and snippets.

@scottnix
Created July 14, 2013 00:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottnix/5992758 to your computer and use it in GitHub Desktop.
Save scottnix/5992758 to your computer and use it in GitHub Desktop.
Remove "Posted" from Thematic Comment Meta
<?php
// modifying the comment-meta
// yanked out the translation stuff (for ease of use)
// reference http://thematictheme.com/forums/topic/customize-how-comments-appear/
function childtheme_override_commentmeta($print = TRUE) {
$content = '<div class="comment-meta">';
$content .= '<a href="' . get_permalink() . '#comment-' . get_comment_ID() . '" title="Link to comment">';
$content .= get_comment_date() . ' at ' . get_comment_time();
$content .= '</a>';
if ( get_edit_comment_link() ) {
$content .= sprintf(' <span class="meta-sep">|</span><span class="edit-link"> <a class="comment-edit-link" href="%1$s" title="%2$s">%3$s</a></span>',
get_edit_comment_link(),
__( 'Edit comment' , 'thematic' ),
__( 'Edit', 'thematic' ) );
}
$content .= '</div>' . "\n";
return $print ? print(apply_filters('thematic_commentmeta', $content)) : apply_filters('thematic_commentmeta', $content);
}
@RamiroCampa
Copy link

Cool Code!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment