WordPress.org

Ready to get started?Download WordPress

Forums

Origin
[closed] Add "Leave Comment" link to home page (3 posts)

  1. toribowman
    Member
    Posted 1 year ago #

    You can't access the comment section on the home page, you have to click on each post before the option is even available to you. Does anyone know how to add a "Comment" link to the section that says the category and author, for example?

    I don't want all of the comments and the comment box to show up for every post on the front page, but I would like a link to comment to show up to make it easier for people?

    Does that make sense?

    Here is a link to my blog. I am using the origin theme, I've just adjusted it.

    http://www.fairelafeteblog.com/

    Thank you!

  2. Sridhar Katakam
    Member
    Posted 1 year ago #

    I can give you a direction but not the final solution.

    Make any suggested changes below in a child theme and not directly in the main theme itself in order to prevent loss of customizations upon theme updates.

    http://codex.wordpress.org/Child_Themes has more info.

    Edit the following in index.php.

    <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-published] &middot; by [entry-author] &middot; in [entry-terms taxonomy="category" before=""] [entry-edit-link before=" &middot; "]', 'origin' ) . '</div>' ); ?>

    It can be changed to something like

    <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">' . __( '[entry-published] &middot; by [entry-author] &middot; in [entry-terms taxonomy="category" before=""] [entry-edit-link before=" &middot; "] <span class="my-comment-link">test</span>', 'origin' ) . '</div>' ); ?>

    You will need to find the code for displaying 'Leave Comment' link and place it in place of "test" above.

    Also add the following at the end of child theme's style.css:

    .my-comment-link {
        float: right;
    }
  3. Griden
    Member
    Theme Author

    Posted 1 year ago #

    It doesn't really help to start two topics with the same question. Here is the original: http://wordpress.org/support/topic/no-link-to-leave-comments-on-home-page?replies=3

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic