Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Paul de Wouters

    (@pauldewouters)

    can you share a pastebin with your code?

    Thread Starter moonkir

    (@moonkir)

    https://news.zip.ua/books/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80/

    I add to functions.php this

    add_action( 'plugins_loaded', function() {
        remove_filter( 'comments_template', array( 'HMN_Comment_Popularity', 'custom_comments_template' ) );
    }, 100 );

    and replace in comments.php:

    <ol class="commentlist">
    				<?php wp_list_comments( 'avatar_size=96&type=comment' ); ?>
    			</ol><!--/.commentlist-->

    by:

    <ol class="commentlist">
    				<?php /* wp_list_comments( 'avatar_size=96&type=comment' ); */
    				if ( function_exists( 'hmn_cp_the_sorted_comments' ) ) {
    					hmn_cp_the_sorted_comments( $args );
    					} else {
    					wp_list_comments( 'avatar_size=96&type=comment' );
    					}?>
    			</ol><!--/.commentlist-->
    Plugin Author Paul de Wouters

    (@pauldewouters)

    I updated the example code, it should work now. Please note that you’ll need a custom comment callback to display the voting arrows.

    Thread Starter moonkir

    (@moonkir)

    WOW! it`s work – thx!

    Is it the theme’s comments.php file whose call to wp_list_comments is to be modified?

    I’ve been fiddling with this for weeks on anders noren’s excellent theme Radcliffe (here) and I can’t get his comment template to take over when CP is activated.

    Voting plugins are a dime a dozen – but one that resort comments based on votes are truly rare – so thank you for making this! And I’d appreciate any help you can offer.

    Thanks.

    Zack

    Plugin Author Paul de Wouters

    (@pauldewouters)

    zjbenj

    if you haven’t found a solution yet, could you open a separate thread?

    thanks

    So this answer is in the FAQ.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom comment template for Hueman theme’ is closed to new replies.