• This is a theme-specific issue. Although it also occurs in another grid-based theme I’ve tried it doesn’t in some other themes.

    As you will see here https://www.moviedump.org/blade-runner-2049/ there are comments numbered and the comments box is there and you can make a new comment. But no comments show up.

    All plugins are turned off.

    The theme is old and its authors are uncontactable. I am fond of it and would like to keep it so I am wondering if you have suggestions of what to look for in the css codes or any other ideas. Thanks if so.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • @moviedump

    As I understood you wish to show commented text. If you are familiar with coding then try check your theme’s comment template.
    Or you can check this tutorial which may help you to resolve your issue.

    Comment Template

    Adding comments to a WordPress theme template

    Please check and let me know.
    Thanks!

    this is what ends up in the browser where the comments output should be:

    		<ol class="commentlist">
    				</li><!-- #comment-## -->
    </li><!-- #comment-## -->
    </li><!-- #comment-## -->
    			</ol>

    which is obviously broken.

    to get the comments at all, edit comments.php of your theme, find:

    <ol class="commentlist">
    				<?php wp_list_comments( array( 'callback' => 'imbalance2_comment' ) ); ?>
    			</ol>

    this callback function imbalance2_comment() is broken; you can find it in functions.php of the theme.

    remove the callback, so you have:

    <ol class="commentlist">
    				<?php wp_list_comments(); ?>
    			</ol>

    this will use the default comments output (which might not be perfect for your theme’s layout), but you should see all comments with their texts.

    Thread Starter moviedump

    (@moviedump)

    Thanks Michael! That worked. Yes the layout is odd now but I can live with that.

    Thread Starter moviedump

    (@moviedump)

    Jatin, thanks also for the links. They might help clear up formatting issues.

    update, to fix the problem at its core which should give you the intended comments layout:

    edit functions.php, find:

    function imbalance2_comment( $comment, $args, $depth ) {
    	$GLOBALS['comment'] = $comment;
    	switch ( $comment->comment_type ) :
    		case '' :
    	?>

    change it to:

    function imbalance2_comment( $comment, $args, $depth ) {
    	$GLOBALS['comment'] = $comment;
    	switch ( $comment->comment_type ) :
    		case 'comment' :
    	?>

    and restore the edited section in comments.php back to:

    			<ol class="commentlist">
    				<?php wp_list_comments( array( 'callback' => 'imbalance2_comment' ) ); ?>
    			</ol>
    Thread Starter moviedump

    (@moviedump)

    Thanks again Michael,

    Another good fix. All I need now is more comments ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘comment box and comments numbered, but none shown’ is closed to new replies.