WordPress.org

Forums

Iconic One
[resolved] Move "comments" link to bottom of post (7 posts)

  1. ontherye
    Member
    Posted 1 year ago #

    Currently, the "comments" link appears above the post's content. I would like it to display BELOW the posts' content (above the tags/categories line). Could you please show me which lines of code need to be moved (and in which PHP file) to move the "comments" link down to the bottom of a post? Thanks for your help.

  2. bmos
    Member
    Posted 1 year ago #

    content.php is the file. mine is so modified at this point i can't even tell you where to look in yours but look for these lines.

    <div class="below-title-meta">
    		<div class="adt">
    		<?php _e('By','themonic'); ?>
            <span class="author">
             <?php echo the_author_posts_link(); ?>
            </span>
             <span class="meta-sep">|</span>
             <?php echo get_the_date(); ?>
             </div>
    		 <div class="adt-comment">
    		 <a class="link-comments" href="<?php  comments_link(); ?>"><?php comments_number(__('0 Comment','themonic'),__('1 Comment'),__('% Comments')); ?></a>
             </div>
         </div>

    move that down so it's right before <footer class="entry-meta">

  3. bmos
    Member
    Posted 1 year ago #

    what you probably are wanting to do is ONLY have the comments below. in that case use only this part (and remove it from the earlier section):

    <div class="below-title-meta">
    		 <div class="adt-comment">
    		 <a class="link-comments" href="<?php  comments_link(); ?>"><?php comments_number(__('0 Comment','themonic'),__('1 Comment'),__('% Comments')); ?></a>
             </div>
         </div>
  4. ontherye
    Member
    Posted 1 year ago #

    @bmos - Thank you! thank you so much for your help! The second code is exactly what i'm looking for! =)

  5. ontherye
    Member
    Posted 1 year ago #

    I will mark this as resolved. Thx again for your help!

  6. jmaurice
    Member
    Posted 1 year ago #

    I moved the code below from its original position in an attempt to move comment link. I was trying to follow steps given by member bmos-3 wks ago from 8/4/2014 The attempt failed and as a result all I have left is the header of the of my the theme and my menu below my title. I would like to put it back in its original position but I did make a memo of that position can anyone help me get theme back? Appreciate the feed back Thanks.

  7. jmaurice
    Member
    Posted 1 year ago #

    In response to my last question I found the answer simply reading my original question and by placing that string of code back under the end of the header string of code Thanks anyway guys I guess I will just have to live with the comment link at the top of my pages and post

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic