• Resolved Draky

    (@draky)


    Hello.

    Just noticed one thing : comment form is ABOVE comments.
    Is it possible to change position to have it AFTER previous comments ?

    Thanks ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,
    at the moment the only way you can do that is by modifying the file comments.php.
    Better if you create a child-theme, copy this file from your parent theme to your child-theme directory and then modify it.
    What you have to change is this piece of code:
    https://github.com/eri-trabiccolo/customizr/blob/master/comments.php#L24

    and make it like this:

    if ( have_comments() )
      do_action ( '__comment' );
    comment_form();

    Hope this helps.

    p.s.
    alternatively you can use javascript to move elements..

    Thread Starter Draky

    (@draky)

    Thanks ??

    You’re welcome ??

    I’m trying to do the same thing…
    So I made it look like this…

    <?php
    /**
     * The template for displaying Comments.
     *
     * The area of the page that contains both current comments
     * and the comment form. The actual display of comments is
     * handled by a callback to tc_comment_callback()
     *
     * @package Customizr
     * @since Customizr 1.0
     */
    /*
     * If the current post is protected by a password and
     * the visitor has not yet entered the password we will
     * return early without loading the comments.
     */
    if ( have_comments() )
      do_action ( '__comment' );
    comment_form(); {
    	echo apply_filters( 'tc_comment_separator', '<hr class="featurette-divider '. current_filter() .'">' );
    }
    ?>
    
    <div id="comments" class="<?php echo implode( ' ', apply_filters( 'tc_comments_wrapper_class' , array('comments-area') ) ) ?>" >
    	<?php
    		comment_form();
    		if ( have_comments() && apply_filters( 'tc_display_comment_list', true ) )
    			do_action ( '__comment' );
    	?>
    </div><!-- #comments .comments-area -->

    Is this correct? It looks weird on my blog post. See this post.

    Thank you so much.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change comment form position : AFTER comments’ is closed to new replies.