Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7846

    There is a small bug in comments.php.

    If comments are disabled the “Leave a reply ……” Text will be displayed.

    I think the bottom of the comment.php file should looks like :

    if ( ! comments_open() ) :
    ?>
    <p><?php _e( 'Comments are closed.', 'avia_framework' ); ?></p>

    <?php

    else:

    /* Last but not least the comment_form() wordpress function
    * renders the comment form as defined by wordpress itself
    * if you want to modify the submission form check the documentation here:
    * http://codex.wordpress.org/Function_Reference/comment_form
    */
    echo "<div class='comment_meta_container'>";
    echo "<h3 class='miniheading'>".__('Leave a Reply','avia_framework')."</h3>";
    echo "<span class='minitext'>".__('Want to join the discussion? <br/>Feel free to contribute!','avia_framework')."</span>";
    echo "</div>";
    echo "<div class='comment_container'>";
    comment_form();
    echo "</div>";

    endif; // end ! comments_open()
    ?>

    </div>

    #59439

    Thanks for the hint. I’ll report it to Kriesi.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Bug in comments.php’ is closed to new replies.