• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Comments on home page

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Comments on home page

This topic is: not resolved

Tagged: blog, comments, home

  • This topic has 11 replies, 6 voices, and was last updated 11 years, 8 months ago by teamaherl.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • May 1, 2013 at 7:26 am #38738
    minimalblogger
    Member

    I'm trying to add comments to the homepage of the Fabric theme. Based on a search of these forums, I added the following code to functions.php:

    add_action( 'genesis_after_loop', 'genesis_comments' );

    Visually, it doesn't seem to be doing anything. Upon inspecting the code, I find this at the bottom of the post:

    <div id="comments">
    </div>

    But that div is empty (that's a direct cut & paste; not edited). I initially thought that maybe the post data didn't exist (since it's happening *outside* the loop), and changed

    genesis_after_loop

    to

    genesis_after_content

    but that doesn't seem to have helped either.

    Any idea what I'm doing wrong?

     

    http://recoveringshopaholic.com/
    May 1, 2013 at 7:39 am #38739
    Brad Dalton
    Participant

    Where exactly do you want to display the comments based on this visual hook guide? http://genesistutorials.com/visual-hook-guide/

    Rather than edit the home.php file, you could use a custom function or create a widget area in the hook position you want to output the comments. You can then use the recent comments widget which is a default WordPress widget.


    Tutorials for StudioPress Themes.

    May 1, 2013 at 7:48 am #38744
    minimalblogger
    Member

    That's an awesome page! I'd like the comments to show up somewhere in the

    genesis_after_post_content

    genesis_after_post

    sections. Basically exactly where they show up in any other post that's *not* a homepage post. And to clarify, I need the comments from the post itself - not the most recent comments across all posts.

    In short, I just need

    http://recoveringshopaholic.com/

    to look exactly like

    http://recoveringshopaholic.com/project-333-week-four/

    I would cheerfully use a custom function, but what's got me confused is that this *should* be possible with a simple line of code like the one I already tried. I just need to tell Genesis to do whatever it normally does with comments, only do it on the homepage too.

    I keep thinking that this shouldn't be this hard. 🙂

    May 1, 2013 at 8:05 am #38745
    Brad Dalton
    Participant

    There's no home.php in your theme so you need to use a custom function.

    I'll test the function for you first.


    Tutorials for StudioPress Themes.

    May 2, 2013 at 1:00 am #38882
    minimalblogger
    Member

    Brad, thanks for any help you can give! A custom function would definitely work; I just have no idea how to even pull that off - I've been trying to hack away at things in functions.php and modify hooks, etc. but I've had *zero* luck.

    With that comments div being empty, I get the feeling that somewhere comments are supposed to be loaded by a query, but they're not. That's what's got me really confused. I think if that riddle could be solved, I'd be okay.

    Anybody have any thoughts on that?

    May 2, 2013 at 2:03 am #38889
    Brad Dalton
    Participant

    Hi

    I did find some code which i tested for several hours but just couldn't get it to work. I'll keep trying and hope someone else can jump in with the solution. Thanks for being patient.


    Tutorials for StudioPress Themes.

    June 6, 2013 at 11:47 am #44369
    bcoco
    Participant

    This one is stumping me, too. Anyone get this to work? (Seems like such a simple thing - have a post with comments on the front page. Y'know?)

    July 1, 2013 at 9:55 am #48689
    WatersWard
    Member

    Stumping me too. Just keeping this post going in the hope that someone finds a solution...

    Doug Ward

    May 30, 2014 at 12:19 am #107426
    teamaherl
    Member

    I would also like to know this. It almost feels that genesis-featured post should have the option to display comments. Seems like many want this feature.
    Just a suggestion 🙂

    May 31, 2014 at 2:29 am #107597
    Tom
    Participant

    It looks like Sridhar did this (or close to it.) using Sample theme (no home.php). It at least brings in the comment form.

    How to show one full post, author box and comment form on homepage in Genesis

    Please note his advice at the bottom of the post about "If you are using a XHTML theme instead of a newer HTML5 theme..."

    Someone willing to play with this? Sridhar is offline for at least another 10 days or so.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    May 31, 2014 at 4:04 am #107604
    Brad Dalton
    Participant

    Need comments list or comments form or both on front page?

    http://wpsites.net/wordpress-tips/add-comment-form-list-comments-on-home-page/


    Tutorials for StudioPress Themes.

    June 2, 2014 at 5:14 am #107809
    teamaherl
    Member

    Thanks everyone. I'll give it a go 🙂

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble