Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #241133

    Hi there –
    Is it possible to move comments to the end of posts? I want the comment line to appear at the end of the post rather than the head. If there is code for this for style.css on a child theme, or other editing that would be appreciated. I had asked about this before and my request was more complicated, out of support scope, which I completely understand, and you recommended customization. My apologies for asking again if this is not an option.
    Thanks.

    #242012

    Hi penumbra!

    I’m not quite sure what you mean. Comments are already at the end of posts: http://kriesi.at/themes/enfold/2011/02/17/aenean-vulputate-eleifend-tellus-aenean-leo-ligula/

    Cheers!
    Devin

    #242075

    Hi Devin –

    Many thanks for asking for clarification. What I’m asking about is the post info at the head of posts, after the post title on the blog page where the posts are collected. I would like to move this line of text to the end of each post on the posts page. Ideally I’d add the words “Leave A Reply”. Please see the link in the following private reply. I’ve also posted a screen shot (another link). I have author, date, and category hidden with in the style.css for the child theme using the code below.

    Code I’m using now to hide part of the post meta on the blog page.
    .date-container, .text-sep-date, .text-sep-comment, .blog-categories, .text-sep-cat, .blog-author { display: none; }
    Really appreciate your help.

    #242082
    This reply has been marked as private.
    #243179

    Hey!

    Open up wp-content/themes/enfold/includes/loop-index.php and delete:

    
                        if ( get_comments_number() != "0" || comments_open() ){
    
                        echo "<span class='comment-container minor-meta'>";
                        comments_popup_link(  "0 ".__('Comments','avia_framework'),
                                              "1 ".__('Comment' ,'avia_framework'),
                                              "% ".__('Comments','avia_framework'),'comments-link',
                                              "".__('Comments Disabled','avia_framework'));
                        echo "</span>";
                        echo "<span class='text-sep text-sep-comment'>/</span>";
                        }
    

    Then replace:

    
     echo '</footer>';
    

    with

    
                        if ( get_comments_number() != "0" || comments_open() ){
    
                        echo "<span class='comment-container minor-meta'>";
                        comments_popup_link(  "0 ".__('Comments','avia_framework'),
                                              "1 ".__('Comment' ,'avia_framework'),
                                              "% ".__('Comments','avia_framework'),'comments-link',
                                              "".__('Comments Disabled','avia_framework'));
                        echo "</span>";
                        }
    
     echo '</footer>';
    

    Cheers!
    Peter

    #243297

    Hi there –

    How would I accomplish this using a child theme?

    Thanks!

    #243360

    Hey!

    Create an includes folder on the child theme directory then copy the loop-index.php file. Make the changes above.

    Cheers!
    Ismael

    #243375

    That worked! Is there a way to add the text “Leave A Reply” to that line of text 0 Comments on the post summary page, or below that line of text? So that the reader has a call to action.

    Thanks!

    #244264

    Hi!

    Sure – i.e. take the code I posted with my last answer and replace:

    
    echo "</span>";
    

    with

    
    echo " | Leave A Reply";
    echo "</span>";
    

    The end result should look like: X Comments | Leave A Reply

    Cheers!
    Peter

    #244342

    Thanks Peter, that worked.

    You guys have been great, many thanks for your support!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘move comments to end of posts’ is closed to new replies.