-
AuthorPosts
-
March 21, 2014 at 1:20 pm #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.March 24, 2014 at 11:11 am #242012Hi 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!
DevinMarch 24, 2014 at 2:26 pm #242075Hi 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.March 24, 2014 at 2:36 pm #242082This reply has been marked as private.March 26, 2014 at 7:57 am #243179Hey!
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!
PeterMarch 26, 2014 at 12:29 pm #243297Hi there –
How would I accomplish this using a child theme?
Thanks!
March 26, 2014 at 2:40 pm #243360Hey!
Create an includes folder on the child theme directory then copy the loop-index.php file. Make the changes above.
Cheers!
IsmaelMarch 26, 2014 at 3:22 pm #243375That 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!
March 28, 2014 at 9:38 am #244264Hi!
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!
PeterMarch 28, 2014 at 1:54 pm #244342Thanks Peter, that worked.
You guys have been great, many thanks for your support!
-
AuthorPosts
- The topic ‘move comments to end of posts’ is closed to new replies.