WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding comment link to posts on homepage (5 posts)

  1. Cakowalik
    Member
    Posted 1 year ago #

    I'm using the Origin theme and switched to showing full posts (as opposed to excerpts) on the homepage. I noticed that there isn't a way to leave a comment on the homepage without clicking on the post's title to go to its individual page. I'd like to add a comment link (preferably at the bottom of each post) on the main page. Thank you very much for your help, and as I'm fairly new to this, please tell me exactly where I need to add extra code. :)

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

  3. Cakowalik
    Member
    Posted 1 year ago #

    Thank you for your help! I tried adding the suggested code to my index.php, but it showed the comment count for the entire homepage and pushed it over near the sidebar. Maybe I didn't put it in the right place? I'd really like a comment link for each post.

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    add the code
    <?php comments_popup_link(); ?>
    possibly into index.php, between those two lines in index.php:

    </div><!-- .entry-summary -->
    
    							<?php do_atomic( 'close_entry' ); // origin_close_entry ?>
  5. Cakowalik
    Member
    Posted 1 year ago #

    That worked perfectly! Thank you very much, alchymyth! :)

Topic Closed

This topic has been closed to new replies.

About this Topic