Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <pre class="lang:css">add_filter('tc_bubble_comment' , 'my_custom_comment_buble'); /*activates the filter hook after the page/pst title*/
- function my_custom_comment_buble() {
- if ( 0 == get_comments_number() )
- return '';
- return sprintf('<span class="my-custom-bubble">%1$s %2$s</span>', /*name the css class from which attributes are collected*/
- get_comments_number(),
- sprintf( _n( 'comment' , 'comments' , get_comments_number(), 'customizr' ), /*the _n funtion defines the singular or plural form of comment. Note: if you want it in anyother language you have to change here. Also if you dont want the word comment to be displayed remove this line and the next*/
- number_format_i18n( get_comments_number(), 'customizr' )
- )
- );
- </pre>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement